mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-24 08:25:14 +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.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'),
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user