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

Chrome apps don't allow unload event handlers #223

Closed
alxlo opened this issue Jan 9, 2015 · 3 comments
Closed

Chrome apps don't allow unload event handlers #223

alxlo opened this issue Jan 9, 2015 · 3 comments

Comments

@alxlo
Copy link

alxlo commented Jan 9, 2015

When using sockjs 0.3.4 as part of a W3C packaged app (Chrome App), sockjs-0.3.4.js:595

utils.attachEvent('unload', unload_triggered);

results in an error message "unload is not available in packaged apps."

@romanesko
Copy link

+1

@brycekahle
Copy link
Contributor

Does this actually prevent your app from working? From what I can tell it is just a warning. You can use https://developer.chrome.com/apps/runtime#event-onSuspend and then close the connection manually if you want.

@alxlo
Copy link
Author

alxlo commented Feb 18, 2015

It really is just a warning and everything seems to work as expected.

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

3 participants