We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7463120 commit ba4a003Copy full SHA for ba4a003
src/main.js
@@ -21,11 +21,11 @@ const store = require('./store').default;
21
22
23
(async () => {
24
- const response = await axios.get(`http://${window.location.hostname}:${window.location.port}/api/ports`);
+ const response = await axios.get(`${window.location.protocol}//${window.location.hostname}:${window.location.port}/api/ports`);
25
const data = await response.data;
26
Vue.use(new VueSocketIO({
27
debug: true,
28
- connection: `http://${window.location.hostname}:${data.wsPort}`,
+ connection: `${window.location.protocol}//${window.location.hostname}:${data.wsPort}`,
29
vuex: {
30
store,
31
actionPrefix: 'SOCKET_',
0 commit comments