mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-26 10:01:08 +12:00
minor code review
This commit is contained in:
parent
d7cb45c237
commit
364d2985db
|
@ -311,7 +311,7 @@ body .toolbar #specificScope > span:first-of-type {
|
|||
flex: 1;
|
||||
}
|
||||
body .toolbar #globalScope {
|
||||
margin-left: 0 0 0 1px;
|
||||
margin-left: 1px;
|
||||
text-align: center;
|
||||
width: 2em;
|
||||
}
|
||||
|
|
|
@ -1053,7 +1053,7 @@ function selectGlobalScope() {
|
|||
|
||||
function selectSpecificScope(ev) {
|
||||
var newScope = ev.target.getAttribute('data-scope');
|
||||
if ( matrixSnapshot.scope === newScope ) { return; }
|
||||
if ( !newScope || matrixSnapshot.scope === newScope ) { return; }
|
||||
document.body.classList.remove('globalScope');
|
||||
matrixSnapshot.scope = newScope;
|
||||
matrixSnapshot.tMatrixModifiedTime = undefined;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=100vw">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" href="css/common.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/popup.css" type="text/css">
|
||||
<title>uMatrix panel</title>
|
||||
|
@ -22,16 +22,8 @@
|
|||
<a id="gotoDashboard" class="extensionURL" href="#" data-extension-url="dashboard.html" title="popupTipDashboard">uMatrix <span id="version"> </span><span class="fa"></span></a>
|
||||
<div id="toolbarContainer">
|
||||
<div class="toolbar">
|
||||
<span class="scope" id="specificScope"></span><!--
|
||||
<span class="scope" id="specificScope"><span> </span></span><!--
|
||||
--><span class="scope" id="globalScope" data-scope="*">∗</span>
|
||||
<!-- <div class="dropdown-menu">
|
||||
<ul>
|
||||
<li id="scopeKeyGlobal" class="dropdown-menu-entry">∗
|
||||
<li id="scopeKeyDomain" class="dropdown-menu-entry">
|
||||
<li id="scopeKeySite" class="dropdown-menu-entry">
|
||||
</ul>
|
||||
</div>
|
||||
<div class="dropdown-menu-capture"></div> -->
|
||||
<button id="mtxSwitch_matrix-off" type="button" class="fa scopeRel tip-anchor-left" data-i18n-tip="matrixMtxButtonTip"><span class="badge"></span></button>
|
||||
<div style="display:inline-block; position:relative; vertical-align:top;">
|
||||
<button id="buttonMtxSwitches" type="button" class="dropdown-menu-button fa scopeRel" tabindex="-1"><span class="badge"></span></button>
|
||||
|
|
Loading…
Reference in a new issue