});
app.on('web-contents-created', function(event, webContents) {
console.log('web-contents-created');
+ if (_this.isTVProfile)
+ _this.setCookiePath();
_this.webContents = webContents;
_this.webContents.on('before-input-event', function(event, input) {
if (_this.isLaunched && _this.webApplication) {
}
}
}
- _this.configureRuntime(appControl);
+ _this.setCookiePath();
+ _this.launchInspector(appControl);
});
wrt.on('suspend', function() {
console.log('suspend');
let bundleDebug = (appControl.getData('__AUL_DEBUG__') === "1");
return (bundleDebug || this.inspectorEnabledByVconf);
}
- launchInspector(appControl) {
- var debugPort = wrt.startInspectorServer();
- var data = { "port" : [ debugPort.toString() ] };
- if (this.webApplication)
- this.webApplication.debugPort = debugPort;
- appControl.reply(data);
- }
- configureRuntime(appControl) {
- this.configureRuntime = (param) => {}; // call once
+ setCookiePath() {
+ this.setCookiePath = () => {}; // call once
+ console.log('setCookiePath');
// FIX ME : It must be supplemented to set a specific path
wrt.setCookiePath();
+ }
+ launchInspector(appControl) {
+ this.launchInspector = (param) => {}; // call once
+ console.log('launchInspector');
// AUL public key/Vconf - To support inspector
if (this.checkInspectorCondition(appControl)) {
- this.launchInspector(appControl);
+ var debugPort = wrt.startInspectorServer();
+ var data = { "port" : [ debugPort.toString() ] };
+ if (this.webApplication)
+ this.webApplication.debugPort = debugPort;
+ appControl.reply(data);
}
}
handleKeyEvents(key) {