chromeExtensionAsync icon indicating copy to clipboard operation
chromeExtensionAsync copied to clipboard

Promise wrapper for the Chrome extension API so that it can be used with async/await rather than callbacks

Results 8 chromeExtensionAsync issues
Sort by recently updated
recently updated
newest added

The method was changed in Chrome 86.

I make error : ``` Error: Error thrown in execution script: e is not defined. Stack: ReferenceError: e is not defined at :4:44 at :4:76 at :20:3 at Object.chrome.tabs.executeAsyncFunction ```...

Hi! I get this error: ``` Uncaught (in promise) Error: The message port closed before a response was received. at chrome-extension-async.js:46 ``` trying to send a message to background.js like:...

Namely, I need the def of async version of `chrome.tabs.getCurrent()`. When I try to `import chrome from "chrome-extension-async/chrome-extension-async";` TS says `node_modules/chrome-extension-async is not a module`.

question

This is an alternative approach to fixing #23. For chrome functions that pass no arguments to their callbacks, we should try to propagate the function's own return value. Honestly, I'm...

@KeithHenry I noticed in [a comment from last year](https://github.com/KeithHenry/chromeExtensionAsync/issues/16#issuecomment-481171924) that you didn't have a way to reliably detect the promiseable functions in the chrome API. I took a stab at...

enhancement
help wanted

I spent half a day trying to get a working TypeScript extension. No matter what I do, I can't get chrome to recognize the promisified interface (Typescript does, but Chrome...

help wanted

Any reason why the declaration file is not on @types? It would make it easier to use, as it doesn't have to be copied with the project.

enhancement
help wanted