Skip to content

Commit

Permalink
Update io.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirasawaSama authored Jul 10, 2020
1 parent c00e1bd commit 7dc0789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import socketIO from 'socket.io-client'

export default socketIO(process.env.NODE_ENV === 'production'
? location.protocol + '//hz.apisium.cn:9124' : 'http://127.0.0.1:9124')
? location.protocol === 'https:' ? 'https://hz.apisium.cn/nekoPanelWs' : 'http://hz.apisium.cn:9124' : 'http://127.0.0.1:9124')

0 comments on commit 7dc0789

Please sign in to comment.