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

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -