forked from ephymew/Pokeclicker-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdesktopupdatechecker.js
More file actions
18 lines (16 loc) · 815 Bytes
/
desktopupdatechecker.js
File metadata and controls
18 lines (16 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This script has no effect outside the desktop app. It should not be manually installed.
{
// IMPORTANT: Always keep this up to date with the version number in app_src/main.js
const LATEST_VERSION = '2.1.0';
if (App.isUsingClient) {
if (typeof POKECLICKER_SCRIPTS_DESKTOP_VERSION !== 'string'
|| POKECLICKER_SCRIPTS_DESKTOP_VERSION < LATEST_VERSION) {
Notifier.notify({
type: NotificationConstants.NotificationOption.info,
title: 'Pokéclicker Scripts Desktop update',
message: 'A new version of Pokéclicker Scripts Desktop is available for download:\n\n<a href="https://github.com/Ephenia/Pokeclicker-Scripts/tree/master/desktop" target="_blank">https://github.com/Ephenia/Pokeclicker-Scripts/tree/master/desktop</a>',
timeout: GameConstants.DAY,
});
}
}
}