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:
@@ -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;
|
||||
}
|
||||
|
@@ -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">
|
||||
|
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user