How to fix Chrome New Tab function with extention -
i'm creating small extention when on-button-click, open url in new tab.
this snippet of part of function:
var urllink = "www.google.com"; chrome.tabs.create({ url: urllink });
however, when newtab opened doesn't go google.com puts
chrome-extension://**extentionid**/www.google.com
how go www.google.com rather call chrome-extention extentionid?
also i've delcared following in manifest.json
"permissions":[ "tabs" ],
thanks.
adding http:// or https:// url fixes this.
Comments
Post a Comment