prevent base64ZipDialog from closing when ws disconnects

This commit is contained in:
schlagmichdoch 2023-01-19 15:07:58 +01:00
parent 6bc1bcf743
commit 469d3f6ec8
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ class ServerConnection {
_onPairDeviceJoin(roomKey) { _onPairDeviceJoin(roomKey) {
if (!this._isConnected()) { if (!this._isConnected()) {
setTimeout(_ => this._onPairDeviceJoin(roomKey), 1000); setTimeout(_ => this._onPairDeviceJoin(roomKey), 5000);
return; return;
} }
this.send({ type: 'pair-device-join', roomKey: roomKey }) this.send({ type: 'pair-device-join', roomKey: roomKey })

View file

@ -993,7 +993,7 @@ class ReceiveTextDialog extends Dialog {
class Base64ZipDialog extends Dialog { class Base64ZipDialog extends Dialog {
constructor() { constructor() {
super('base64ZipDialog'); super('base64ZipDialog', false);
const urlParams = new URL(window.location).searchParams; const urlParams = new URL(window.location).searchParams;
const base64zip = urlParams.get('base64zip'); const base64zip = urlParams.get('base64zip');
if (!navigator.clipboard.readText) { if (!navigator.clipboard.readText) {