From 155ffc8aec31c7bdfce1843149926ff598f25b07 Mon Sep 17 00:00:00 2001 From: The Jared Wilcurt Date: Wed, 12 Jun 2019 17:48:36 -0400 Subject: [PATCH 01/23] Add VSC Intellisense setup to FAQ --- docs/For Users/FAQ.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/docs/For Users/FAQ.md b/docs/For Users/FAQ.md index 0e8db3044e..a2cdd83eaf 100644 --- a/docs/For Users/FAQ.md +++ b/docs/For Users/FAQ.md @@ -3,13 +3,18 @@ [TOC] + ## console.log doesn't output to Linux terminal `--enable-logging=stderr` should be used in the command line; See more here: https://www.chromium.org/for-testers/enable-logging + ## `var crypto = require('crypto')` gets a wrong object + 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. + ## Images are broken in AngularJS and receive `Failed to load resource XXX net::ERR_UNKNOWN_URL_SCHEME` in DevTools + 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: ```javascript @@ -20,8 +25,10 @@ myApp.config(['$compileProvider', }]); ``` -## Can't see exception reporting in AngularJS 2 -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, + +## Can't see exception reporting in AngularJS 2+ + +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, ```html