1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-01-24 16:32:28 +01:00

Fixed quality issues

This commit is contained in:
nobody 2020-06-30 18:44:50 +02:00
parent 03178c3963
commit 6ebc0f8c1f
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 7 additions and 7 deletions

View File

@ -262,7 +262,7 @@ stateManager._setIconDisabled = function (tabIdentifier) {
stateManager.requests = {}; stateManager.requests = {};
stateManager.tabs = {}; stateManager.tabs = {};
stateManager.getInvertOption; stateManager.getInvertOption = false;
stateManager.disabledIconPath = { stateManager.disabledIconPath = {
'16': chrome.runtime.getURL('icons/action/icon16-disabled.png'), '16': chrome.runtime.getURL('icons/action/icon16-disabled.png'),
'18': chrome.runtime.getURL('icons/action/icon18-disabled.png'), '18': chrome.runtime.getURL('icons/action/icon18-disabled.png'),

View File

@ -303,7 +303,7 @@ options._openRuleSet = function({target}) {
} }
} }
textArea.value = content.replace(/\n+$/, ""); textArea.value = content.replace(/\n+$/, "");
} };
options._copyRuleSet = function() { options._copyRuleSet = function() {
let textArea = document.getElementById("generated-rules"); let textArea = document.getElementById("generated-rules");
@ -312,35 +312,35 @@ options._copyRuleSet = function() {
}, function() { }, function() {
alert("Rule set cannot be copied!"); alert("Rule set cannot be copied!");
}); });
} };
options._onClickHTMLFilterWarning = function() { options._onClickHTMLFilterWarning = function() {
chrome.tabs.create({ chrome.tabs.create({
'url': 'https://codeberg.org/nobody/LocalCDN/wiki/Blank-websites-or-weird-characters', 'url': 'https://codeberg.org/nobody/LocalCDN/wiki/Blank-websites-or-weird-characters',
'active': true 'active': true
}); });
} };
options._onClickWelcomePage = function() { options._onClickWelcomePage = function() {
chrome.tabs.create({ chrome.tabs.create({
'url': chrome.extension.getURL('pages/welcome/welcome.html'), 'url': chrome.extension.getURL('pages/welcome/welcome.html'),
'active': true 'active': true
}); });
} };
options._onClickDonate = function() { options._onClickDonate = function() {
chrome.tabs.create({ chrome.tabs.create({
'url': chrome.extension.getURL('pages/donate/donate.html'), 'url': chrome.extension.getURL('pages/donate/donate.html'),
'active': true 'active': true
}); });
} };
options._onClickChangelog = function() { options._onClickChangelog = function() {
chrome.tabs.create({ chrome.tabs.create({
'url': chrome.extension.getURL('pages/updates/updates.html'), 'url': chrome.extension.getURL('pages/updates/updates.html'),
'active': true 'active': true
}); });
} };
/** /**
* Initializations * Initializations