mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:17:02 +02:00
give browser window a title and icon
This commit is contained in:
parent
6b4db2707e
commit
59f2573038
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,7 @@ var path = require('path');
|
||||||
|
|
||||||
const TRAY_FILENAME = (osType == "Darwin" ? "console-tray-Template.png" : "console-tray.png");
|
const TRAY_FILENAME = (osType == "Darwin" ? "console-tray-Template.png" : "console-tray.png");
|
||||||
const TRAY_ICON = path.join(__dirname, '../resources/' + TRAY_FILENAME);
|
const TRAY_ICON = path.join(__dirname, '../resources/' + TRAY_FILENAME);
|
||||||
|
const APP_ICON = path.join(__dirname, '../resources/console.png');
|
||||||
|
|
||||||
// print out uncaught exceptions in the console
|
// print out uncaught exceptions in the console
|
||||||
process.on('uncaughtException', console.log.bind(console));
|
process.on('uncaughtException', console.log.bind(console));
|
||||||
|
@ -177,6 +178,8 @@ var hiddenWindow = null;
|
||||||
app.on('ready', function() {
|
app.on('ready', function() {
|
||||||
// create a BrowserWindow so the app launches but don't show it
|
// create a BrowserWindow so the app launches but don't show it
|
||||||
hiddenWindow = new BrowserWindow({
|
hiddenWindow = new BrowserWindow({
|
||||||
|
icon: APP_ICON,
|
||||||
|
title: "High Fidelity",
|
||||||
show: false
|
show: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue