for-testing

Firefox with websocket
Other without
This commit is contained in:
Anthony LC
2025-02-20 11:20:50 +01:00
parent 3ca07e0f4c
commit 168904728b
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ on:
push:
branches:
- 'main'
- 'feature/collab-long-polling'
tags:
- 'v*'
pull_request:
@@ -95,6 +95,14 @@ export class CollaborationProvider extends HocuspocusProvider {
let url = '';
if (isHocuspocusProviderConfigurationUrl(configuration)) {
url = configuration.url;
let withWS = true;
if (
new URLSearchParams(window.location.search).get('withoutWS') === 'true'
) {
withWS = false;
}
configuration.url = !withWS ? 'ws://localhost:6666' : configuration.url;
}
super(configuration);