Skip to content

Commit

Permalink
Merge pull request #84 from centre-for-humanities-computing/kf/standa…
Browse files Browse the repository at this point in the history
…lone-electron-app

Kf/standalone electron app
  • Loading branch information
KasperFyhn authored Nov 20, 2024
2 parents c66ae41 + 1f636a0 commit 2171b6c
Show file tree
Hide file tree
Showing 4 changed files with 2,105 additions and 160 deletions.
16 changes: 16 additions & 0 deletions visualizer/electron-main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const { app, BrowserWindow } = require("electron");
const path = require("path");


function createWindow() {
const mainWindow = new BrowserWindow();

// Directly load index.html from the build folder
mainWindow.loadFile(path.join(__dirname, "build", "index.html"));
}

app.whenReady().then(createWindow);

app.on("window-all-closed", () => {
if (process.platform !== "darwin") app.quit();
});
Loading

0 comments on commit 2171b6c

Please sign in to comment.