From 727553412f01f7a528d462693009725348156d35 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Wed, 15 Sep 2021 15:26:43 +0200
Subject: [PATCH] add flag to socketio, hope it will improve firefox
compatibility
---
app/static/js/nopaque/main.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/static/js/nopaque/main.js b/app/static/js/nopaque/main.js
index 2bf85bad..3ae00ee7 100644
--- a/app/static/js/nopaque/main.js
+++ b/app/static/js/nopaque/main.js
@@ -1,7 +1,7 @@
class AppClient {
constructor(currentUserId) {
if (currentUserId) {
- this.socket = io({transports: ['websocket']});
+ this.socket = io({transports: ['websocket'], upgrade: false});
this.users = {};
this.users.self = this.loadUser(currentUserId);
this.users.self.eventListeners.job.addEventListener((eventType, payload) => this.jobEventHandler(eventType, payload));