mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-07 00:17:17 +08:00
fix first launch notice cannot load
This commit is contained in:
@@ -8,7 +8,7 @@ export function createFirstLaunchNoticeWindow(
|
|||||||
): BrowserWindow {
|
): BrowserWindow {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
firstLaunchNoticeWindow = new BrowserWindow({
|
firstLaunchNoticeWindow = new BrowserWindow({
|
||||||
width: 720,
|
width: 960,
|
||||||
height: 640,
|
height: 640,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
show: false,
|
show: false,
|
||||||
@@ -28,8 +28,8 @@ export function createFirstLaunchNoticeWindow(
|
|||||||
if (process.env.NODE_ENV === 'development' && process.env['ELECTRON_RENDERER_URL']) {
|
if (process.env.NODE_ENV === 'development' && process.env['ELECTRON_RENDERER_URL']) {
|
||||||
firstLaunchNoticeWindow.loadURL(process.env['ELECTRON_RENDERER_URL'] + '#/first-run-readme')
|
firstLaunchNoticeWindow.loadURL(process.env['ELECTRON_RENDERER_URL'] + '#/first-run-readme')
|
||||||
} else {
|
} else {
|
||||||
firstLaunchNoticeWindow.loadFile(
|
firstLaunchNoticeWindow.loadURL(
|
||||||
path.join(__dirname, '../renderer/index.html') + '#/first-run-readme'
|
'file://' + path.join(__dirname, '../renderer/index.html') + '#/first-run-readme'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user