mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
second bang
This commit is contained in:
committed by
Matt Hill
parent
4b07d57578
commit
382448b143
@@ -22,7 +22,7 @@ export function PatchDbServiceFactory (
|
|||||||
source = new WebsocketSource(`ws://localhost:${config.mocks.wsPort}/db`)
|
source = new WebsocketSource(`ws://localhost:${config.mocks.wsPort}/db`)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (supportsWebSockets) {
|
if (!supportsWebSockets) {
|
||||||
source = new PollSource({ ...poll }, embassyApi)
|
source = new PollSource({ ...poll }, embassyApi)
|
||||||
} else {
|
} else {
|
||||||
const protocol = window.location.protocol === 'http:' ? 'ws' : 'wss'
|
const protocol = window.location.protocol === 'http:' ? 'ws' : 'wss'
|
||||||
|
|||||||
Reference in New Issue
Block a user