Moves navigateTo to util

This commit is contained in:
Josh Perez 2021-09-21 16:45:25 -04:00 committed by GitHub
parent b64908d01d
commit 1d2fcde49f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 20 deletions

View file

@ -2,6 +2,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import * as log from '../logging/log';
import { openLinkInWebBrowser } from '../util/openLinkInWebBrowser';
window.Whisper = window.Whisper || {};
const { Whisper } = window;
@ -106,7 +107,7 @@ Whisper.InstallView = Whisper.View.extend({
this.error.name === 'HTTPError' &&
this.error.code === TOO_OLD
) {
window.location.href = 'https://signal.org/download';
openLinkInWebBrowser('https://signal.org/download');
return;
}