diff --git a/client/.eslintrc.cjs b/client/.eslintrc.cjs index 32b5b72..beb304a 100644 --- a/client/.eslintrc.cjs +++ b/client/.eslintrc.cjs @@ -85,6 +85,6 @@ module.exports = { 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', // Custom - 'no-console': 'warn', + // 'no-console': 'warn', }, }; diff --git a/client/src/components/player.vue b/client/src/components/player.vue index cfb7a93..e1a1587 100644 --- a/client/src/components/player.vue +++ b/client/src/components/player.vue @@ -213,7 +213,7 @@ export default { this.connection = new Player(); this.connection.init(); - this.connection.onHandler(this.getPlaying); + this.connection.onHandler(this.handlePlayer); }, checkSongIsFavorite() { app @@ -236,7 +236,7 @@ export default { console.error(err); }); }, - getPlaying(e) { + handlePlayer(e) { // console.log('getPlaying', e); const jsonData = JSON.parse(e.data); // console.log('jsonData', jsonData); diff --git a/client/src/index.template.html b/client/src/index.template.html index 16eea2c..96a5cf6 100644 --- a/client/src/index.template.html +++ b/client/src/index.template.html @@ -1,20 +1,28 @@ - + - - - - - - - - - - - - - - - -
- + + + + + + + + + + + + + + + +
+