Add app icon

This commit is contained in:
2024-05-29 10:09:11 +02:00
parent 90c285a557
commit f1654d14ad
7 changed files with 40 additions and 15 deletions
+3 -2
View File
@@ -26,7 +26,7 @@ function loadConfig() {
config = JSON.parse(data);
} catch (err) {
if (err.code == 'ENOENT') {
console.warn('No config file found.');
console.warn('No config file found at ' + path.join(__dirname, "config.json"));
} else {
console.error(err);
}
@@ -41,6 +41,7 @@ async function createWindow() {
width: 1920,
height: 1080,
backgroundColor: '#000000',
icon: 'images/icon-512.png',
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
nodeIntegration: true,
@@ -54,7 +55,7 @@ async function createWindow() {
win = null;
});
win.webContents.addListener("will-navigate", validateDomain);
win.webContents.addListener("willnavigate-", validateDomain);
win.once("ready-to-show", () => {
win.setKiosk(true);