update deprications

This commit is contained in:
itdominator 2021-08-26 17:34:29 -05:00
parent ec46bd5302
commit 64b2623790
2 changed files with 6 additions and 5 deletions

View File

@ -14,6 +14,7 @@ Better YouTube + works to improve the YouTube experience by providing quick acce
# Version: 1.5.8
* Updated attribute search
* Updated getUrl method caller
# Download
https://addons.mozilla.org/en-US/firefox/addon/better-youtube-plus/

View File

@ -281,7 +281,7 @@
clearInterval(ytVideoIntervalLoop);
loopingInterval = false;
ytLoopBttn.title = "Start Loop...";
let ipath = browser.extension.getURL("/icons/loopFalse.png");
let ipath = browser.runtime.getURL("/icons/loopFalse.png");
setbuttonImage(ytLoopBttn, ipath);
return ;
}
@ -291,13 +291,13 @@
console.log("Setting default loop marker...");
video.loop = true;
ytLoopBttn.title = "Stop Loop...";
let ipath = browser.extension.getURL("/icons/loopTrue.png");
let ipath = browser.runtime.getURL("/icons/loopTrue.png");
setbuttonImage(ytLoopBttn, ipath);
} else {
console.log("Unsetting default loop marker...");
video.loop = false;
ytLoopBttn.title = "Start Loop...";
let ipath = browser.extension.getURL("/icons/loopFalse.png");
let ipath = browser.runtime.getURL("/icons/loopFalse.png");
setbuttonImage(ytLoopBttn, ipath);
}
return ;
@ -338,7 +338,7 @@
// Setup interval check for 1 sec and compare value of current pos to end
ytLoopBttn.title = "Stop Loop...";
let ipath = browser.extension.getURL("/icons/loopTrue.png");
let ipath = browser.runtime.getURL("/icons/loopTrue.png");
setbuttonImage(ytLoopBttn, ipath);
loopingInterval = true;
@ -458,6 +458,6 @@
}
const setbuttonImage = (elm, path) => {
elm.style.backgroundImage = "url('" + browser.extension.getURL(path); + "')";
elm.style.backgroundImage = "url('" + browser.runtime.getURL(path); + "')";
}
}());