Verified Commit 2ebb9d8f authored by Booteille's avatar Booteille

Use runtime.getURL() instead of deprecated extension.getURL()

parent 7c5fcda4
......@@ -16,10 +16,10 @@ const invidition = async (r) => {
// Have to workaround Iframe API
if (url.pathname === '/iframe_api') {
url.href = browser.extension.getURL('/assets/js/youtube/iframe_api.js');
url.href = browser.runtime.getURL('/assets/js/youtube/iframe_api.js');
} else {
if (url.pathname.indexOf('www-widgetapi.js') != -1) {
url.href = browser.extension.getURL('/assets/js/youtube/www-widgetapi.js');
url.href = browser.runtime.getURL('/assets/js/youtube/www-widgetapi.js');
} else {
// If not iFrame API files, redirect to invidio.us
let queryChanged = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment