-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Bug: App crashes when poping up a menu #5513
Comments
The issue is caused by calling in background page. However background page does not have a web page. So you will see the menu popup in the bottom left of the screen. I will fix the crash, but it's not recommended to call it in background page. |
@ghostoy Thank you |
The background page is a default HTML loaded on start. See Chrome App Background Pages. And "In NW.js, Node.js modules can be loaded in the context running in background page, which is the default behavior." See Javascript Context in NW.js. |
* chore/update-nw: Add a workaround a bug in nwjs/nw.js#5513 Update the URL to be relative. Replace `require(‘nw.gui’)` with the global `nw`. Remove setting the `localStorage` of the `global`. It’s set by default.
* develop: Bump version to 2.1.0 Update copyright year to 2017. Correct a contributor’s name. Update the compilers. Add a build system for making releases using gulp. Add a workaround a bug in nwjs/nw.js#5513 Update the URL to be relative. Replace `require(‘nw.gui’)` with the global `nw`. Remove setting the `localStorage` of the `global`. It’s set by default. Improve the feature Use JSON files and update default JSON config files Support for AutoPrefix Config on CSS, LESS and Sass change the default value of maxBuffer oklai#162
Using
How to reproduce
"crash.html"
"crash.js"
Run an app having
"main": "crash.html"
in the "package.json"What's expected
The app lunches without crashing and a menu is open in the top left corner of the window.
See the workaround below.
What actually happens
The app crashs.
Workaround
"nocrash.html"
"nocrash.js"
Crash Dump
I will provide one if needed.
The text was updated successfully, but these errors were encountered: