mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Check userAgent before running electron init
This commit is contained in:
parent
6d8df6744e
commit
6c3618cb65
@ -417,10 +417,14 @@ function calculateAchievements(): void {
|
||||
}
|
||||
|
||||
export function initElectron(): void {
|
||||
const userAgent = navigator.userAgent.toLowerCase();
|
||||
if (userAgent.indexOf(' electron/') > -1) {
|
||||
// Electron-specific code
|
||||
setAchievements([]);
|
||||
initWebserver();
|
||||
setInterval(calculateAchievements, 5000);
|
||||
initAppNotifier();
|
||||
}
|
||||
}
|
||||
|
||||
function initWebserver(): void {
|
||||
|
Loading…
Reference in New Issue
Block a user