Skip to content

Commit

Permalink
fix: support for printer farm in https mode
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Dec 5, 2021
1 parent dd3c897 commit 3fe0a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/farm/printer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3fe0a10

Please sign in to comment.