1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

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
3 changed files with 5 additions and 2 deletions

View File

@@ -102,7 +102,7 @@
</div> </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> <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>
<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="title-option-select" data-i18n-content="chooseIconStyle">Choose an icon for this extension</div>
<div class="description-option"> <div class="description-option">
<select id="selected-icon" data-option="selectedIcon"> <select id="selected-icon" data-option="selectedIcon">

View File

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

View File

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