handleProxyInfo(authInfo: any, callback: any) { return false; }
initialize(options: RuntimeOption) { }
isBackgroundLaunch() { return false; }
- needInpectorGuide() { return false; }
+ needInpectorGuide() { return 'no_need_inspector'; }
needReload(src: string) {
let originalUrl = this.webApplication.mainWindow.webContents.getURL();
if (src !== originalUrl) {
needInpectorGuide() {
if (this.isBackgroundLaunch()) {
- return false;
+ return 'no_need_inspector';
}
if (this.tv.needUseInspector()) {
+ if (this.tv.skipInspectorPopup()) {
+ console.log('skip Inspector Popup');
+ return 'need_inspector_without_popup';
+ }
+
this.inspectorSrc = this.webApplication.contentSrc;
this.webApplication.contentSrc = 'about:blank';
- return true;
+ return 'need_inspector_with_popup';
}
- return false;
+ return 'no_need_inspector';
}
needReload(src: string) {
console.log('launchInspectorIfNeeded');
let needInpectorGuide = this.profileDelegate.needInpectorGuide();
let hasAulDebug = (appControl.getData('__AUL_DEBUG__') === '1');
-
- if (hasAulDebug || needInpectorGuide) {
+ if (hasAulDebug || needInpectorGuide !== 'no_need_inspector') {
let debugPort = wrt.startInspectorServer();
let data = { "port": [debugPort.toString()] };
this.debugPort = debugPort;