Skip to content

Commit

Permalink
Move static assets (just index.html) to new static directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Delhanty committed Aug 14, 2020
1 parent 946faa4 commit d0e9234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.ts
Expand Up @@ -12,7 +12,7 @@ function createWindow() {
});

// and load the index.html of the app.
mainWindow.loadFile(path.join(__dirname, "../index.html"));
mainWindow.loadFile(path.join(__dirname, "../static/index.html"));

// Open the DevTools.
mainWindow.webContents.openDevTools();
Expand Down
2 changes: 1 addition & 1 deletion index.html → static/index.html
Expand Up @@ -20,6 +20,6 @@ <h1>Hello World!</h1>
<span id="electron-version"></span>.

<!-- You can also require other files to run in this process -->
<script src="./dist/renderer.js"></script>
<script src="../dist/renderer.js"></script>
</body>
</html>

0 comments on commit d0e9234

Please sign in to comment.