the following javascript code is called within my popup.html:
unfortunately i get an error which says:Code:function redirectAndInject(inputValue){ chrome.tabs.executeScript(null, {code:"window.location = 'http://google.com'"},function(tab) { chrome.tabs.executeScript(null, {code:"alert('inject Code in google.com');"}); }); window.close(); }
(i know i am using "null" instead of "tab.id" as the first parameter of chrome.tabs.executeScript, but that should be ok)Code:Uncaught TypeError: Cannot read property '0' of null


LinkBack URL
About LinkBacks



Reply With Quote
