1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-23 00:25:15 +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.tabs = {};
stateManager.getInvertOption;
stateManager.getInvertOption = false;
stateManager.disabledIconPath = {
'16': chrome.runtime.getURL('icons/action/icon16-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+$/, "");
}
};
options._copyRuleSet = function() {
let textArea = document.getElementById("generated-rules");
@ -312,35 +312,35 @@ options._copyRuleSet = function() {
}, function() {
alert("Rule set cannot be copied!");
});
}
};
options._onClickHTMLFilterWarning = function() {
chrome.tabs.create({
'url': 'https://codeberg.org/nobody/LocalCDN/wiki/Blank-websites-or-weird-characters',
'active': true
});
}
};
options._onClickWelcomePage = function() {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/welcome/welcome.html'),
'active': true
});
}
};
options._onClickDonate = function() {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/donate/donate.html'),
'active': true
});
}
};
options._onClickChangelog = function() {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/updates/updates.html'),
'active': true
});
}
};
/**
* Initializations