mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Don't check update for beta version
This commit is contained in:
parent
35e7fdacb5
commit
c7734245ae
@ -1,6 +1,6 @@
|
|||||||
import { UserAgent } from "./user-agent";
|
import { UserAgent } from "./user-agent";
|
||||||
|
|
||||||
export const SCRIPT_VERSION = Bun.env.SCRIPT_VERSION;
|
export const SCRIPT_VERSION = Bun.env.SCRIPT_VERSION!;
|
||||||
export const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';
|
export const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud';
|
||||||
|
|
||||||
export const AppInterface = window.AppInterface;
|
export const AppInterface = window.AppInterface;
|
||||||
|
@ -7,6 +7,11 @@ import { Translations } from "./translation";
|
|||||||
* Check for update
|
* Check for update
|
||||||
*/
|
*/
|
||||||
export function checkForUpdate() {
|
export function checkForUpdate() {
|
||||||
|
// Don't check update for beta version
|
||||||
|
if (SCRIPT_VERSION.includes('beta')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const CHECK_INTERVAL_SECONDS = 2 * 3600; // check every 2 hours
|
const CHECK_INTERVAL_SECONDS = 2 * 3600; // check every 2 hours
|
||||||
|
|
||||||
const currentVersion = getPref(PrefKey.CURRENT_VERSION);
|
const currentVersion = getPref(PrefKey.CURRENT_VERSION);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user