this.handleIpcMessages();
this.extensionManager = null;
this.isLaunched = false;
+ this.debug_mode = false;
var _this = this;
app.on('will-finish-launching', function() {
}
// FIX ME : It must be supplemented to set a specific path
wrt.setCookiePath();
+
+ // AUL public key - To support debug argument
+ if (!_this.debug_mode && appControl.getData('__AUL_DEBUG__') == "1") {
+ _this.debug_mode = true;
+ _this.launchInspector(appControl);
+ }
});
wrt.on('suspend', function() {
console.log('suspend');
return _this.extensionManager.deactivate(app, name);
});
}
+ launchInspector(appControl) {
+ var data = { "port" : [ wrt.getDebuggingPort().toString() ] };
+ appControl.reply(data);
+ }
}
module.exports = Runtime;