We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5db66e0 commit cb5530bCopy full SHA for cb5530b
frontend/src/worker.ts
@@ -145,7 +145,7 @@ async function start_connection(setup_data: SetupMessage) {
145
}
146
self.postMessage(msg);
147
return;
148
- }else if (resp.status !== 200) {
+ } else if (resp.status !== 200) {
149
const msg: Message = {
150
type: MessageType.Error,
151
data: {
@@ -161,6 +161,9 @@ async function start_connection(setup_data: SetupMessage) {
161
162
keys = await resp.json();
163
} catch (e) {
164
+ setTimeout(() => {
165
+ start_connection(setup_data);
166
+ }, 1000);
167
168
169
const decrypted_keys = decrypt_keys(keys, setup_data.secret);
0 commit comments