mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 22:38:31 +02:00
Fix issue #152: no need to use getURL
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": chrome.extension.getURL("my-page.html")
|
||||
"url": "my-page.html"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user