Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Booteille
Invidition
Commits
2ebb9d8f
Verified
Commit
2ebb9d8f
authored
Apr 10, 2019
by
Booteille
Browse files
Use runtime.getURL() instead of deprecated extension.getURL()
parent
7c5fcda4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/background.ts
src/background.ts
+2
-2
No files found.
src/background.ts
View file @
2ebb9d8f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment