mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-05 17:33:49 +00:00
prevent base64ZipDialog from closing when ws disconnects
This commit is contained in:
@@ -56,7 +56,7 @@ class ServerConnection {
|
||||
|
||||
_onPairDeviceJoin(roomKey) {
|
||||
if (!this._isConnected()) {
|
||||
setTimeout(_ => this._onPairDeviceJoin(roomKey), 1000);
|
||||
setTimeout(_ => this._onPairDeviceJoin(roomKey), 5000);
|
||||
return;
|
||||
}
|
||||
this.send({ type: 'pair-device-join', roomKey: roomKey })
|
||||
|
||||
@@ -993,7 +993,7 @@ class ReceiveTextDialog extends Dialog {
|
||||
class Base64ZipDialog extends Dialog {
|
||||
|
||||
constructor() {
|
||||
super('base64ZipDialog');
|
||||
super('base64ZipDialog', false);
|
||||
const urlParams = new URL(window.location).searchParams;
|
||||
const base64zip = urlParams.get('base64zip');
|
||||
if (!navigator.clipboard.readText) {
|
||||
|
||||
Reference in New Issue
Block a user