second bang

This commit is contained in:
Drew Ansbacher
2021-09-16 12:24:41 -06:00
committed by Aiden McClelland
parent f6d39359bc
commit 506799828c

View File

@@ -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'