Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Commit

Permalink
Fix paths both development and production mode #8
Browse files Browse the repository at this point in the history
  • Loading branch information
saltyshiomix committed Oct 12, 2019
1 parent cfd294f commit 65568a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/_template/js/main/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ if (isProd) {
});

if (isProd) {
await mainWindow.loadURL('app://./home.html');
await mainWindow.loadURL('app://./index.html');
} else {
const port = process.argv[2];
await mainWindow.loadURL(`http://localhost:${port}/home`);
await mainWindow.loadURL(`http://localhost:${port}`);
mainWindow.webContents.openDevTools();
}
})();
Expand Down
4 changes: 2 additions & 2 deletions examples/_template/ts/main/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ if (isProd) {
});

if (isProd) {
await mainWindow.loadURL('app://./home.html');
await mainWindow.loadURL('app://./index.html');
} else {
const port = process.argv[2];
await mainWindow.loadURL(`http://localhost:${port}/home`);
await mainWindow.loadURL(`http://localhost:${port}`);
mainWindow.webContents.openDevTools();
}
})();
Expand Down
4 changes: 2 additions & 2 deletions examples/with-javascript/renderer/pages/about.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<div class="container">
<img src="~static/nuxt-black.png">
<img src="/nuxt-black.png">
<h2>Thank you for testing Nuxtron</h2>
<p>Loaded from the {{ name }}</p>
<p>
<NuxtLink to="/home">
<NuxtLink to="/">
Back home
</NuxtLink>
</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="container">
<img src="~static/nuxt.png">
<img src="/nuxt.png">
<h2>Hello Nuxtron.</h2>
<p>Loaded from the {{ name }}</p>
<p>
Expand Down

0 comments on commit 65568a5

Please sign in to comment.