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

Usage of @resource requires granting GM_getResourceURL #1

Open
kitlith opened this issue Dec 9, 2019 · 0 comments
Open

Usage of @resource requires granting GM_getResourceURL #1

kitlith opened this issue Dec 9, 2019 · 0 comments

Comments

@kitlith
Copy link
Owner

kitlith commented Dec 9, 2019

// TODO: do something that doesn't require granting an API to avoid unsafeWindow
// For now, this works without too much modification.
wasm_bindgen(GM_getResourceURL('wasm'));

I'd like to go back to @grant none, so that I don't need to use unsafeWindow.

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

No branches or pull requests

1 participant