|
@@ -19,10 +19,16 @@ class CrowiDev {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
init() {
|
|
init() {
|
|
|
|
|
+ this.initPromiseRejectionWarningHandler();
|
|
|
this.initSwig();
|
|
this.initSwig();
|
|
|
this.hackLRWebSocketServer();
|
|
this.hackLRWebSocketServer();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ initPromiseRejectionWarningHandler() {
|
|
|
|
|
+ // https://qiita.com/syuilo/items/0800d7e44e93203c7285
|
|
|
|
|
+ process.on('unhandledRejection', console.dir);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
initSwig() {
|
|
initSwig() {
|
|
|
swig.setDefaults({ cache: false });
|
|
swig.setDefaults({ cache: false });
|
|
|
}
|
|
}
|