mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-16 06:05:37 +07:00
Replaced deprecated API
This commit is contained in:
@@ -93,7 +93,7 @@ function getDataTableTranslation()
|
||||
{
|
||||
let lang = browser.i18n.getUILanguage();
|
||||
lang = lang.substring(0,2);
|
||||
return browser.extension.getURL('./external_js/dataTables/i18n/' + lang + '.lang');
|
||||
return browser.runtime.getURL('./external_js/dataTables/i18n/' + lang + '.lang');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -196,9 +196,9 @@ function resetGlobalCounter(){
|
||||
changeSwitchButton("tabcounter", "badgedStatus");
|
||||
changeSwitchButton("logging", "loggingStatus");
|
||||
changeSwitchButton("statistics", "statisticsStatus");
|
||||
document.getElementById('loggingPage').href = browser.extension.getURL('./html/log.html');
|
||||
document.getElementById('settings').href = browser.extension.getURL('./html/settings.html');
|
||||
document.getElementById('cleaning_tools').href = browser.extension.getURL('./html/cleaningTool.html');
|
||||
document.getElementById('loggingPage').href = browser.runtime.getURL('./html/log.html');
|
||||
document.getElementById('settings').href = browser.runtime.getURL('./html/settings.html');
|
||||
document.getElementById('cleaning_tools').href = browser.runtime.getURL('./html/cleaningTool.html');
|
||||
setText();
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user