mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-12 00:59:52 +01:00
Do not do websync in non-production mode
This commit is contained in:
parent
d54369c33a
commit
49e593d291
@ -1,4 +1,4 @@
|
|||||||
import { APP_VERSION } from '../config';
|
import { APP_VERSION, DEBUG } from '../config';
|
||||||
import { getGlobal } from '../lib/teact/teactn';
|
import { getGlobal } from '../lib/teact/teactn';
|
||||||
import { hasStoredSession } from './sessions';
|
import { hasStoredSession } from './sessions';
|
||||||
|
|
||||||
@ -66,6 +66,10 @@ export const forceWebsync = (authed: boolean) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export function startWebsync() {
|
export function startWebsync() {
|
||||||
|
if (DEBUG) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (lastTimeout !== undefined) return;
|
if (lastTimeout !== undefined) return;
|
||||||
const currentTs = getTs();
|
const currentTs = getTs();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user