mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
second bang
This commit is contained in:
committed by
Aiden McClelland
parent
f6d39359bc
commit
506799828c
@@ -22,7 +22,7 @@ export function PatchDbServiceFactory (
|
||||
source = new WebsocketSource(`ws://localhost:${config.mocks.wsPort}/db`)
|
||||
}
|
||||
} else {
|
||||
if (supportsWebSockets) {
|
||||
if (!supportsWebSockets) {
|
||||
source = new PollSource({ ...poll }, embassyApi)
|
||||
} else {
|
||||
const protocol = window.location.protocol === 'http:' ? 'ws' : 'wss'
|
||||
|
||||
Reference in New Issue
Block a user