mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
this fixes #262
This commit is contained in:
parent
58804dba7d
commit
1e57760fe1
3 changed files with 9 additions and 3 deletions
7
platform/firefox/bootstrap.js
vendored
7
platform/firefox/bootstrap.js
vendored
|
@ -70,6 +70,13 @@ function startup(data, reason) {
|
|||
return;
|
||||
}
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/262
|
||||
// To remove whatever suffix AMO adds to the version number.
|
||||
var matches = version.match(/(?:\d+\.)+\d+/);
|
||||
if ( matches !== null ) {
|
||||
version = matches[0];
|
||||
}
|
||||
|
||||
bgProcess = hiddenDoc.documentElement.appendChild(
|
||||
hiddenDoc.createElementNS('http://www.w3.org/1999/xhtml', 'iframe')
|
||||
);
|
||||
|
|
|
@ -50,7 +50,6 @@ a {
|
|||
#version {
|
||||
font-size: 10px;
|
||||
font-weight: normal;
|
||||
margin-left: 1em;
|
||||
}
|
||||
body[dir="ltr"] #panes {
|
||||
direction: rtl;
|
||||
|
@ -104,7 +103,7 @@ body.portrait[dir="ltr"] #panes > div:nth-of-type(2) {
|
|||
display: none;
|
||||
}
|
||||
#panes > div:nth-of-type(1) {
|
||||
min-width: 150px;
|
||||
min-width: 160px;
|
||||
padding: 0;
|
||||
}
|
||||
p {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<a href="dashboard.html" target="_blank" id="gotoPrefs" title="popupTipDashboard"><span id="appname"> </span><span id="version"> </span></a>
|
||||
<a href="dashboard.html" target="_blank" id="gotoPrefs" title="popupTipDashboard"><span id="appname"> </span> <span id="version"> </span></a>
|
||||
<div id="panes">
|
||||
<div>
|
||||
<p id="switch" data-i18n-tip="popupPowerSwitchInfo" data-tip-position="under"><span class="fa"></span></p>
|
||||
|
|
Loading…
Reference in a new issue