Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Promise-based Chrome APIs. #66

Open
JakeWharton opened this issue Jan 26, 2018 · 2 comments
Open

Promise-based Chrome APIs. #66

JakeWharton opened this issue Jan 26, 2018 · 2 comments

Comments

@JakeWharton
Copy link
Owner

Using https://github.com/mozilla/webextension-polyfill enables defining the external APIs directly with Promises. This is nice because it doesn't break the ability to DI a ChromePlatform.

We could also very easily use impure extension functions to achieve the result (https://github.com/JakeWharton/SdkSearch/compare/jakew/promise/2018-01-25), but it currently breaks the Kotlin JS compiler...

@JakeWharton
Copy link
Owner Author

Coming with manifest v3 so we can just wait for that

@JakeWharton
Copy link
Owner Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant