Add app icon
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user