diff --git a/src/kiss_firefox/BackgroundUtil.kiss b/src/kiss_firefox/BackgroundUtil.kiss index 6206799..f42e8a6 100644 --- a/src/kiss_firefox/BackgroundUtil.kiss +++ b/src/kiss_firefox/BackgroundUtil.kiss @@ -2,6 +2,9 @@ (function createTab [:String url] (API.browser.tabs.create (objectWith url))) +(function sendMessage [:Int tabId :String type :Array data] + (API.browser.tabs.sendMessage tabId (objectWith type data))) + // Requires the activeTab permission in manifest.json (function runCode [tab :String jsCode] (API.browser.tabs.executeScript tab.id