fix: support for printer farm in https mode (#452)

This commit is contained in:
Jérôme W authored and GitHub committed 2021-12-05 18:58:17 +01:00
1 parent 04ead521b0
commit 8110b2f7b7
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ export const getDefaultState = (): FarmPrinterState => {
hostname: '',
port: 7125,
webPort: 80,
protocol: 'ws',
protocol: document.location.protocol === 'https:' ? 'wss' : 'ws',
isConnected: false,
isConnecting: false,
reconnects: 0,