use window.setClockParams

pull/1168/head
Ryan Tharp 5 years ago committed by GitHub
parent f28508b849
commit 5a54eaa79a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1914,8 +1914,13 @@
toastOptions.id = 'expiredWarning';
}
if (!window.clientClockSynced) {
// Check to see if user has updated their clock to current time
const clockSynced = await window.LokiPublicChatAPI.setClockParams();
let clockSynced = false;
if (window.setClockParams) {
// Check to see if user has updated their clock to current time
clockSynced = await window.setClockParams();
} else {
log.info('setClockParams not loaded yet');
}
if (clockSynced) {
toastOptions.title = i18n('clockOutOfSync');
toastOptions.id = 'clockOutOfSync';

Loading…
Cancel
Save