update deprications
This commit is contained in:
@@ -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); + "')";
|
||||
}
|
||||
}());
|
||||
|
Reference in New Issue
Block a user