mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Deprecated function removed
This commit is contained in:
@ -213,16 +213,16 @@ const Regex = {
|
|||||||
const Links = {
|
const Links = {
|
||||||
'CODEBERG_HTML_FILTER': 'https://codeberg.org/nobody/LocalCDN/wiki/Home#user-content-7-a-website-looks-weird-or-cannot-be-used-if-i-deactivate-localcdn-everything-works-what-is-the-problem',
|
'CODEBERG_HTML_FILTER': 'https://codeberg.org/nobody/LocalCDN/wiki/Home#user-content-7-a-website-looks-weird-or-cannot-be-used-if-i-deactivate-localcdn-everything-works-what-is-the-problem',
|
||||||
'CODEBERG_RULESET': 'https://codeberg.org/nobody/LocalCDN/wiki/Home#user-content-6-why-do-i-need-this-rule-generator-i-use-an-adblocker-and-want-to-import-these-rules-how-does-it-work',
|
'CODEBERG_RULESET': 'https://codeberg.org/nobody/LocalCDN/wiki/Home#user-content-6-why-do-i-need-this-rule-generator-i-use-an-adblocker-and-want-to-import-these-rules-how-does-it-work',
|
||||||
'WELCOME': chrome.extension.getURL('pages/welcome/welcome.html'),
|
'WELCOME': chrome.runtime.getURL('pages/welcome/welcome.html'),
|
||||||
'DONATE': chrome.extension.getURL('pages/donate/donate.html'),
|
'DONATE': chrome.runtime.getURL('pages/donate/donate.html'),
|
||||||
'CHANGELOG': chrome.extension.getURL('pages/updates/updates.html'),
|
'CHANGELOG': chrome.runtime.getURL('pages/updates/updates.html'),
|
||||||
'FAQ': chrome.extension.getURL('pages/help/help.html'),
|
'FAQ': chrome.runtime.getURL('pages/help/help.html'),
|
||||||
'FAQ_HTML_FILTER': chrome.extension.getURL('pages/help/help.html#html-filter'),
|
'FAQ_HTML_FILTER': chrome.runtime.getURL('pages/help/help.html#html-filter'),
|
||||||
'STATISTICS': chrome.extension.getURL('pages/statistics/statistics.html'),
|
'STATISTICS': chrome.runtime.getURL('pages/statistics/statistics.html'),
|
||||||
'LOCALCDN_TEST': 'https://www.localcdn.org/test',
|
'LOCALCDN_TEST': 'https://www.localcdn.org/test',
|
||||||
'LOCALCDN_TEST_WEBSITE': 'https://www.localcdn.org/test/check',
|
'LOCALCDN_TEST_WEBSITE': 'https://www.localcdn.org/test/check',
|
||||||
'WEBLATE': 'https://hosted.weblate.org/projects/localcdn/localcdn/',
|
'WEBLATE': 'https://hosted.weblate.org/projects/localcdn/localcdn/',
|
||||||
'LOGGING': chrome.extension.getURL('pages/logging/logging.html'),
|
'LOGGING': chrome.runtime.getURL('pages/logging/logging.html'),
|
||||||
};
|
};
|
||||||
|
|
||||||
const CDNs = {
|
const CDNs = {
|
||||||
|
@ -74,7 +74,7 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'redirectUrl': chrome.extension.getURL(targetPath + fileGuard.secret)
|
'redirectUrl': chrome.runtime.getURL(targetPath + fileGuard.secret)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ main._showReleaseNotes = function (details) {
|
|||||||
}, function () {
|
}, function () {
|
||||||
if (details.temporary !== true) {
|
if (details.temporary !== true) {
|
||||||
chrome.tabs.create({
|
chrome.tabs.create({
|
||||||
'url': chrome.extension.getURL('pages/welcome/welcome.html'),
|
'url': chrome.runtime.getURL('pages/welcome/welcome.html'),
|
||||||
'active': true
|
'active': true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -111,7 +111,7 @@ main._showReleaseNotes = function (details) {
|
|||||||
|
|
||||||
if ((mappingUpdate && items.updateNotification === 1) || items.updateNotification === 2) {
|
if ((mappingUpdate && items.updateNotification === 1) || items.updateNotification === 2) {
|
||||||
chrome.tabs.create({
|
chrome.tabs.create({
|
||||||
'url': chrome.extension.getURL(`pages/updates/updates.html?mappingupdate=${mappingUpdate}`),
|
'url': chrome.runtime.getURL(`pages/updates/updates.html?mappingupdate=${mappingUpdate}`),
|
||||||
'active': false
|
'active': false
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user