1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-23 00:25:15 +01:00

Deprecated function removed

This commit is contained in:
nobody 2021-04-11 08:03:42 +02:00
parent 95f4f6dc6b
commit c79e1c02a7
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
3 changed files with 10 additions and 10 deletions

View File

@ -213,16 +213,16 @@ const Regex = {
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_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'),
'DONATE': chrome.extension.getURL('pages/donate/donate.html'),
'CHANGELOG': chrome.extension.getURL('pages/updates/updates.html'),
'FAQ': chrome.extension.getURL('pages/help/help.html'),
'FAQ_HTML_FILTER': chrome.extension.getURL('pages/help/help.html#html-filter'),
'STATISTICS': chrome.extension.getURL('pages/statistics/statistics.html'),
'WELCOME': chrome.runtime.getURL('pages/welcome/welcome.html'),
'DONATE': chrome.runtime.getURL('pages/donate/donate.html'),
'CHANGELOG': chrome.runtime.getURL('pages/updates/updates.html'),
'FAQ': chrome.runtime.getURL('pages/help/help.html'),
'FAQ_HTML_FILTER': chrome.runtime.getURL('pages/help/help.html#html-filter'),
'STATISTICS': chrome.runtime.getURL('pages/statistics/statistics.html'),
'LOCALCDN_TEST': 'https://www.localcdn.org/test',
'LOCALCDN_TEST_WEBSITE': 'https://www.localcdn.org/test/check',
'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 = {

View File

@ -74,7 +74,7 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
};
return {
'redirectUrl': chrome.extension.getURL(targetPath + fileGuard.secret)
'redirectUrl': chrome.runtime.getURL(targetPath + fileGuard.secret)
};
};

View File

@ -85,7 +85,7 @@ main._showReleaseNotes = function (details) {
}, function () {
if (details.temporary !== true) {
chrome.tabs.create({
'url': chrome.extension.getURL('pages/welcome/welcome.html'),
'url': chrome.runtime.getURL('pages/welcome/welcome.html'),
'active': true
});
}
@ -111,7 +111,7 @@ main._showReleaseNotes = function (details) {
if ((mappingUpdate && items.updateNotification === 1) || items.updateNotification === 2) {
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
});
} else {