mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 10:09:38 +02:00
minor code review (#2072)
This commit is contained in:
parent
562bdc132c
commit
8b0df725a1
@ -165,7 +165,7 @@ vAPI.i18n.render = function(context) {
|
|||||||
.replace(/<br>/g, '\n')
|
.replace(/<br>/g, '\n')
|
||||||
.replace(/\n{3,}/g, '\n\n');
|
.replace(/\n{3,}/g, '\n\n');
|
||||||
elem.setAttribute('data-tip', text);
|
elem.setAttribute('data-tip', text);
|
||||||
if ( elem.getAttribute('aria-label') === 'data-i18n-tip' ) {
|
if ( elem.getAttribute('aria-label') === 'data-tip' ) {
|
||||||
elem.setAttribute('aria-label', text);
|
elem.setAttribute('aria-label', text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
<p id="basicTools">
|
<p id="basicTools">
|
||||||
<span id="gotoZap" class="fa tool" data-i18n-tip="popupTipZapper" data-tip-position="under"></span>
|
<span id="gotoZap" class="fa tool" data-i18n-tip="popupTipZapper" data-tip-position="under"></span>
|
||||||
<span id="gotoPick" class="fa tool" data-i18n-tip="popupTipPicker" data-tip-position="under"></span>
|
<span id="gotoPick" class="fa tool" data-i18n-tip="popupTipPicker" data-tip-position="under"></span>
|
||||||
<a href="logger-ui.html" class="fa tool enabled" aria-label="data-i18n-tip" data-i18n-tip="popupTipLog" data-tip-position="under" target="uBOLogger" tabindex="0"></a>
|
<a href="logger-ui.html" class="fa tool enabled" aria-label="data-tip" data-i18n-tip="popupTipLog" data-tip-position="under" target="uBOLogger" tabindex="0"></a>
|
||||||
<a href="dashboard.html" class="fa tool enabled" aria-label="data-i18n-tip" data-i18n-tip="popupTipDashboard" data-tip-position="under" target="uBODashboard" tabindex="0"></a>
|
<a href="dashboard.html" class="fa tool enabled" aria-label="data-tip" data-i18n-tip="popupTipDashboard" data-tip-position="under" target="uBODashboard" tabindex="0"></a>
|
||||||
</p>
|
</p>
|
||||||
<h2 id="dfToggler" data-i18n="popupBlockedRequestPrompt"> </h2>
|
<h2 id="dfToggler" data-i18n="popupBlockedRequestPrompt"> </h2>
|
||||||
<p class="statName">
|
<p class="statName">
|
||||||
|
Loading…
Reference in New Issue
Block a user