fix: show the beta warning on web

This commit is contained in:
Baptiste Grob
2020-11-20 12:14:39 +01:00
parent 93876a11eb
commit b0ccecbd96
4 changed files with 7 additions and 19 deletions

View File

@@ -63,8 +63,6 @@ const startApplication: StartApplication = async function startApplication(
defaultSyncServerHost: string,
bridge: Bridge
) {
notifyBetaPeriodEnd();
SNLog.onLog = console.log;
startErrorReporting();
@@ -150,19 +148,6 @@ const startApplication: StartApplication = async function startApplication(
});
};
function notifyBetaPeriodEnd() {
if (window.location.hostname === 'app-beta.standardnotes.org') {
alertDialog({
title: 'Beta period has ended',
text:
'Thank you for trying this beta version. Please sign out, then ' +
'sign in to <a href="https://app.standardnotes.org" target="_blank">' +
'app.standardnotes.org</a> ' +
'to continue using Standard Notes.',
});
}
}
if (__WEB__) {
startApplication((window as any)._default_sync_server, new BrowserBridge(__VERSION__));
} else {