Replaced deprecated API

This commit is contained in:
Kevin R
2021-12-28 18:02:48 +01:00
parent 958f1e3515
commit a677797b1c
6 changed files with 27 additions and 8 deletions

View File

@@ -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');
}
/**

View File

@@ -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();
});
})();