Make the URL passed to tabs.create absolute

This commit is contained in:
Will Bamberg
2016-12-07 15:47:27 -10:00
parent e66fd6ced9
commit 25cc51f0e9

View File

@@ -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"
});
}