Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to support Google Chrome #70

Closed
xljabbber opened this issue Jul 28, 2019 · 1 comment
Closed

How to support Google Chrome #70

xljabbber opened this issue Jul 28, 2019 · 1 comment
Labels
question Further information is requested

Comments

@xljabbber
Copy link

How to support Google Chrome, please let developers post

@Cimbali
Copy link
Owner

Cimbali commented Mar 4, 2020

Hi @xljabbber, your question is not quite clear. Also I don’t use google chrome but the extension API is very similar across Firefox, Google Chrome and Opera. Here’s a page with the main differences summed up: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs

Most likely you need to change browser to chrome (or simply set let browser = chrome in modules/prefs.js). Once of the API differences that we rely on is for onMessage, where we always respond with a Promise instead of using a callback, because this latter option will be removed.

Feel free to reopen if this doesn’t answer your question.

@Cimbali Cimbali closed this as completed Mar 4, 2020
@Cimbali Cimbali added the question Further information is requested label Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants