mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
@@ -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