Skip to content

Commit

Permalink
Enable dark mode logging
Browse files Browse the repository at this point in the history
The default colors in the debug output of vue-socket.io are tuned for light mode consoles, and viewing them in dark mode is effectively impossible. Since the base version does not yet support switching the output color, we instead switch to PhantasWeng's patched version, pending MetinSeylan/Vue-Socket.io#231.
  • Loading branch information
thislooksfun committed Jan 17, 2020
1 parent 6931295 commit 9b2356f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"core-js": "^3.4.4",
"v-click-outside": "^3.0.0",
"vue": "^2.6.10",
"vue-socket.io": "^3.0.7"
"vue-socket.io": "git+https://github.com/PhantasWeng/Vue-Socket.io.git#cef2ca40992500b7ae5dd3917268167446cc509c"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Vue.use(vClickOutside);
Vue.use(
new VueSocketIO({
debug: true,
darkMode: true,
connection: io(), // eslint-disable-line no-undef
})
);
Expand Down

0 comments on commit 9b2356f

Please sign in to comment.