webext-content-scripts
Advanced tools
Comparing version 0.11.0 to 0.11.1
@@ -14,3 +14,3 @@ import chromeP from 'webext-polyfill-kinda'; | ||
if ('scripting' in chrome) { | ||
const [result] = await chrome.scripting.executeScript({ | ||
const [injection] = await chrome.scripting.executeScript({ | ||
target: { | ||
@@ -23,3 +23,3 @@ tabId, | ||
}); | ||
return result; | ||
return injection === null || injection === void 0 ? void 0 : injection.result; | ||
} | ||
@@ -26,0 +26,0 @@ const [result] = await chromeP.tabs.executeScript(tabId, { |
{ | ||
"name": "webext-content-scripts", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "Utility functions to inject content scripts from a WebExtension.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
7965