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

Improved: Note for Non-Firefox users (Help and Options page)

This commit is contained in:
nobody
2021-03-30 06:34:41 +02:00
parent acd4881dc1
commit ca7e18f3e1
7 changed files with 167 additions and 120 deletions

View File

@@ -44,8 +44,8 @@ optionsInfo._renderCdnFrameworkSection = function () {
optionsInfo._listOfFrameworks[path[1]] = true;
});
if (BrowserType.CHROMIUM) {
// Chromium based browser does not support Google Material Icons and Font Awesome
if (!BrowserType.FIREFOX) {
// Non-Firefox browser does not support Google Material Icons and Font Awesome
document.getElementById('unsupported-frameworks').style.display = 'block';
unsupportedFrameworks = 2;
}

View File

@@ -35,6 +35,8 @@
<input type="button" id="btn-info-tab" class="option-buttons" data-option-tab="info-tab" data-i18n-content="btnInfo" value="Info"/>
</div>
<div id="chromium-banner">Non-Firefox browsers do not support all functions of LocalCDN. <a class="no-icon" href="../help/help.html#non-firefox">Read more</a></div>
<div id="general-tab" class="tab-content">
<div class="option-group">
<section class="option">

View File

@@ -42,6 +42,10 @@ options._renderContents = function () {
options._renderLocaleNotice();
}
if (!BrowserType.FIREFOX) {
document.getElementById('chromium-banner').style.display = 'block';
}
document.getElementById('label-version').textContent = chrome.runtime.getManifest().version;
};