diff --git a/app/client/src/App.vue b/app/client/src/App.vue index 7e3d493..0eda87b 100644 --- a/app/client/src/App.vue +++ b/app/client/src/App.vue @@ -548,7 +548,13 @@ export default { }); // https://github.com/SaturnMusic/PC/issues/26 - window.addEventListener("unhandledrejection", (event) => { console.log("Unhandled promise rejection!\n", event.promise, event.reason); if(!this.$rooms.room){this.$root.skipNext()}}); + window.addEventListener("unhandledrejection", (event) => { + console.log("Unhandled promise rejection!\n", event.promise, event.reason); + if (!this.$rooms.room && !event.reason.startsWith("The play() request")) + { + this.$root.skipNext() + } + }); //Check for update this.checkUpdate(); diff --git a/app/package.json b/app/package.json index 26c62dd..75c5173 100644 --- a/app/package.json +++ b/app/package.json @@ -11,7 +11,6 @@ "license": "ISC", "dependencies": { "arg": "^5.0.0", - "md5": "^2.3.0", "axios": "^0.21.1", "browser-id3-writer": "^4.4.0", "chalk": "^4.1.1", @@ -21,9 +20,11 @@ "discord-rpc": "^3.2.0", "express": "^4.17.1", "lastfmapi": "^0.1.1", + "md5": "^2.3.0", "metaflac-js2": "^1.0.7", "nedb": "^1.8.0", "nodeezcryptor": "git+https://github.com/SaturnMusic/encryption.git", + "original-fs": "^1.2.0", "sanitize-filename": "^1.6.3", "socket.io": "^4.1.2", "winston": "^3.3.3"