mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
Make the URL passed to tabs.create absolute
This commit is contained in:
@@ -4,7 +4,7 @@ Open a new tab, and load "my-page.html" into it.
|
||||
function openMyPage() {
|
||||
console.log("injecting");
|
||||
browser.tabs.create({
|
||||
"url": "my-page.html"
|
||||
"url": "/my-page.html"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user