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