mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-04 11:25:05 +02:00
Fix windows notification popups:w
This commit is contained in:
parent
61aef14c64
commit
6a3b286a07
1 changed files with 11 additions and 9 deletions
|
@ -10,10 +10,10 @@ const buildInfo = GetBuildInfo();
|
||||||
const osType = os.type();
|
const osType = os.type();
|
||||||
|
|
||||||
const notificationIcon = path.join(__dirname, '../../resources/console-notification.png');
|
const notificationIcon = path.join(__dirname, '../../resources/console-notification.png');
|
||||||
const STORIES_NOTIFICATION_POLL_TIME_MS = 15 * 1000; // 120 * 1000;
|
const STORIES_NOTIFICATION_POLL_TIME_MS = 120 * 1000;
|
||||||
const PEOPLE_NOTIFICATION_POLL_TIME_MS = 15 * 1000; // 120 * 1000;
|
const PEOPLE_NOTIFICATION_POLL_TIME_MS = 120 * 1000;
|
||||||
const WALLET_NOTIFICATION_POLL_TIME_MS = 15 * 1000; // 600 * 1000;
|
const WALLET_NOTIFICATION_POLL_TIME_MS = 600 * 1000;
|
||||||
const MARKETPLACE_NOTIFICATION_POLL_TIME_MS = 15 * 1000; // 600 * 1000;
|
const MARKETPLACE_NOTIFICATION_POLL_TIME_MS = 600 * 1000;
|
||||||
const OSX_CLICK_DELAY_TIMEOUT = 500;
|
const OSX_CLICK_DELAY_TIMEOUT = 500;
|
||||||
|
|
||||||
const METAVERSE_SERVER_URL= process.env.HIFI_METAVERSE_URL ? process.env.HIFI_METAVERSE_URL : 'https://metaverse.highfidelity.com'
|
const METAVERSE_SERVER_URL= process.env.HIFI_METAVERSE_URL ? process.env.HIFI_METAVERSE_URL : 'https://metaverse.highfidelity.com'
|
||||||
|
@ -122,11 +122,13 @@ HifiNotification.prototype = {
|
||||||
timeout: 5
|
timeout: 5
|
||||||
},
|
},
|
||||||
function (error, reason, metadata) {
|
function (error, reason, metadata) {
|
||||||
|
if(_finished) {
|
||||||
if (osType == 'Darwin') {
|
if (osType == 'Darwin') {
|
||||||
setTimeout(_finished, OSX_CLICK_DELAY_TIMEOUT);
|
setTimeout(_finished, OSX_CLICK_DELAY_TIMEOUT);
|
||||||
} else {
|
} else {
|
||||||
_finished();
|
_finished();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -231,7 +233,7 @@ HifiNotifications.prototype = {
|
||||||
// All notifications are sent immediately as they are queued
|
// All notifications are sent immediately as they are queued
|
||||||
// by windows in Tray Notifications and can be bulk seen and
|
// by windows in Tray Notifications and can be bulk seen and
|
||||||
// dismissed
|
// dismissed
|
||||||
_this._showNotification(_this.pendingNotifications.shift());
|
_this.pendingNotifications.shift().show();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_addNotification: function (notification) {
|
_addNotification: function (notification) {
|
||||||
|
|
Loading…
Reference in a new issue