clickgo-native 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare abstract class AbstractBoot {
|
|
|
12
12
|
run(path: string, opt?: {
|
|
13
13
|
'frame'?: boolean;
|
|
14
14
|
'quit'?: boolean;
|
|
15
|
+
'dev'?: boolean;
|
|
15
16
|
}): void;
|
|
16
17
|
on(name: string, handler: (...param: any[]) => any | Promise<any>, once?: boolean): void;
|
|
17
18
|
once(name: string, handler: (...param: any[]) => any | Promise<any>): void;
|
package/dist/index.js
CHANGED
|
@@ -438,6 +438,9 @@ class AbstractBoot {
|
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
createForm(path);
|
|
441
|
+
if (form && opt.dev) {
|
|
442
|
+
form.webContents.openDevTools();
|
|
443
|
+
}
|
|
441
444
|
electron.app.on('window-all-closed', function () {
|
|
442
445
|
if (isNoFormQuit) {
|
|
443
446
|
electron.app.quit();
|
|
@@ -448,6 +451,9 @@ class AbstractBoot {
|
|
|
448
451
|
return;
|
|
449
452
|
}
|
|
450
453
|
createForm(path);
|
|
454
|
+
if (form && opt.dev) {
|
|
455
|
+
form.webContents.openDevTools();
|
|
456
|
+
}
|
|
451
457
|
methods['cg-init'] = {
|
|
452
458
|
'once': true,
|
|
453
459
|
handler: function (t) {
|