Implemented: Hide icon setting if not supported

This commit is contained in:
nobody 2020-07-22 07:23:00 +02:00
parent adc44583a4
commit 2023cf014b
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
3 changed files with 5 additions and 2 deletions

View File

@ -102,7 +102,7 @@
</div>
<div class="description-option" data-i18n-content="hideReleaseNotesDescription">If enabled, you wont receive any information about new features in LocalCDN. This includes information about new uBlock/uMatrix rules.</div>
</section>
<section class="option">
<section id="section-icon-style" class="option">
<div class="title-option-select" data-i18n-content="chooseIconStyle">Choose an icon for this extension</div>
<div class="description-option">
<select id="selected-icon" data-option="selectedIcon">

View File

@ -47,6 +47,9 @@ options._renderContents = function () {
document.getElementById('block-google-fonts').style.display = 'none';
}
if(!chrome.browserAction.setIcon) {
document.getElementById('section-icon-style').style.display = 'none';
}
};
options._renderOptionsPanel = function () {

View File

@ -24,7 +24,7 @@
New in LocalCDN:
</div>
<ul>
<li></li>
<li>Implemented: Hide icon setting if not supported</li>
</ul>
<div class="topic-label">
Generate rule sets for uBlock or uMatrix