You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/For Users/FAQ.md
+29-3Lines changed: 29 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,18 @@
3
3
4
4
[TOC]
5
5
6
+
6
7
## console.log doesn't output to Linux terminal
7
8
`--enable-logging=stderr` should be used in the command line; See more here: https://www.chromium.org/for-testers/enable-logging
8
9
10
+
9
11
## `var crypto = require('crypto')` gets a wrong object
10
-
Chromium has its own global `crypto` object which can't be overwritten. So you can't use the same variable name `crypto`. Changing your variable name to something else, like `nodeCrypto`, will work.
12
+
13
+
Chromium has its own global `crypto` object which can't be overwritten. So you can't use the same variable name `crypto`. Changing your variable name to something else, like `nodeCrypto`, will work.
14
+
11
15
12
16
## Images are broken in AngularJS and receive `Failed to load resource XXX net::ERR_UNKNOWN_URL_SCHEME` in DevTools
17
+
13
18
AngularJS added `unsafe:` prefix for unknown scheme to prevent XSS attack. URLs in NW.js and Chrome apps are started with `chrome-extension:` scheme, which is unknown to AngularJS. The solution is to config the whitelist of known schemes with AngularJS by adding following lines:
AngularJS 2 tries to register exception handlers in global variable `global`. However it's already existed in NW.js environment, which prevents exception reporting shown in DevTools. The workaround is to rename `global` to something else before loading any AngularJS libraries. For example,
28
+
29
+
## Can't see exception reporting in AngularJS 2+
30
+
31
+
AngularJS 2 tries to register exception handlers in global variable `global`. However, it's already existed in NW.js environment, which prevents exception reporting shown in DevTools. The workaround is to rename `global` to something else before loading any AngularJS libraries. For example,
25
32
26
33
```html
27
34
<script>
@@ -31,7 +38,13 @@ window.global = undefined;
31
38
<!-- Angular 2 Dependencies -->
32
39
```
33
40
41
+
* See also:
42
+
*[Tutorial: Angular-CLI and NW.js](https://dev.to/thejaredwilcurt/angular-cli-and-nwjs-for-development-49gl)
Usually users expect to use ESC key to quit fullscreen mode. By default, NW.js don't bind ESC shortcut for leaving fullscreen mode, but providing APIs for entering and leaving fullscreen mode. It will give developers more control on fullscreen mode.
36
49
37
50
To enable ESC key for leaving fullscreen mode, you can use [Shortcut API](../References/Shortcut.md):
0 commit comments