for-testing
Firefox with websocket Other without
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'feature/collab-long-polling'
|
||||
tags:
|
||||
- 'v*'
|
||||
pull_request:
|
||||
|
||||
+8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user