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:
parent
03178c3963
commit
6ebc0f8c1f
@ -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'),
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user