chrome.tabs.executeScript(null, { file: "jquery.js" }, function() {
chrome.tabs.update(null, {url: 'https://example.com/'});
});
above code work when I trigger when my address bar have something, means I'm at any web pages, but when I trigger when my address bar is blank, I got below error :
Unchecked runtime.lastError while running tabs.executeScript: Cannot access a chrome:// URL
at Object.callback