summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/main')
-rw-r--r--gui/src/main/index.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 53e281c15a..73a1656782 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -434,7 +434,13 @@ class ApplicationMain {
const filePath = path.resolve(path.join(__dirname, '../renderer/index.html'));
try {
- await this.windowController?.window.loadFile(filePath);
+ if (process.env.NODE_ENV === 'development') {
+ await this.windowController?.window.loadURL(
+ 'http://localhost:8080/src/renderer/index.html',
+ );
+ } else {
+ await this.windowController?.window.loadFile(filePath);
+ }
} catch (error) {
log.error(`Failed to load index file: ${error.message}`);
}