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

ons.bootstrap() gives exception in Windows #777

Closed
knight9999 opened this issue Jul 14, 2015 · 1 comment
Closed

ons.bootstrap() gives exception in Windows #777

knight9999 opened this issue Jul 14, 2015 · 1 comment
Assignees

Comments

@knight9999
Copy link

In windows app, ons.bootstrap() does not work.
I found that the doc.readyState is 'interactive' when error is occurred.
In such case, angular.bootstrap should be called after DOMContentLoaded event is fired
same as the case doc.readyState is 'loading' or 'uninitialized'.

Please modify
if (doc.readyState == 'loading' || doc.readyState == 'uninitialized') { ...
in ons.bootstrap method by
if (doc.readyState == 'loading' || doc.readyState == 'uninitialized' || doc.readyState == 'interactive') { ...
.

@argelius
Copy link
Contributor

Thanks @knight9999!

We will fix this.

@argelius argelius added the bug label Jul 14, 2015
argelius added a commit that referenced this issue Jul 14, 2015
fix(onsenui.js): fixed ons.bootstrap() on Windows, fixes #777
frandiox added a commit that referenced this issue Jul 27, 2015
@lock lock bot added the outdated label May 18, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants