File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const fs = require('fs');
4
4
const path = require ( 'path' ) ;
5
5
const isMac = process . platform === 'darwin' ;
6
6
const port = 5000 ;
7
+ const Protocol = require ( './protocol' ) ;
7
8
const tutorialRoute = `http://localhost:${ port } /tutorial` ;
8
9
9
10
// Create a template for a menu and create menu using that template
@@ -16,7 +17,7 @@ var MenuBuilder = function(mainWindow, appName) {
16
17
17
18
const openTutorial = ( ) => {
18
19
const tutorial = new BrowserWindow ( {
19
- width : 800 ,
20
+ width : 1126 ,
20
21
height : 900 ,
21
22
minWidth : 661 ,
22
23
title : 'Tutorial' ,
@@ -30,7 +31,12 @@ var MenuBuilder = function(mainWindow, appName) {
30
31
devTools : false
31
32
}
32
33
} ) ;
33
- tutorial . loadURL ( `http://localhost:8080/#/tutorial` ) ;
34
+ console . log ( process . env . NODE_ENV ) ;
35
+ if ( process . env . NODE_ENV === 'development' ) {
36
+ tutorial . loadURL ( `http://localhost:8080/#/tutorial` ) ; }
37
+ else {
38
+ tutorial . loadURL ( `${ Protocol . scheme } ://rse/index-prod.html#/tutorial` ) ;
39
+ }
34
40
tutorial . show ( ) ;
35
41
} ;
36
42
You can’t perform that action at this time.
0 commit comments