projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compress newgame sound, faster loading
[vchess.git]
/
client
/
src
/
views
/
Hall.vue
diff --git
a/client/src/views/Hall.vue
b/client/src/views/Hall.vue
index
8d7d405
..
61ced0a
100644
(file)
--- a/
client/src/views/Hall.vue
+++ b/
client/src/views/Hall.vue
@@
-486,10
+486,6
@@
export default {
}
case "killed":
// I logged in elsewhere:
}
case "killed":
// I logged in elsewhere:
- // TODO: this fails. See https://github.com/websockets/ws/issues/489
- //this.conn.removeEventListener("message", this.socketMessageListener);
- //this.conn.removeEventListener("close", this.socketCloseListener);
- //this.conn.close();
this.conn = null;
alert(this.st.tr["New connexion detected: tab now offline"]);
break;
this.conn = null;
alert(this.st.tr["New connexion detected: tab now offline"]);
break;
@@
-900,7
+896,7
@@
export default {
// If an error occurred, game is not added: abort
if (!err) {
if (this.st.settings.sound)
// If an error occurred, game is not added: abort
if (!err) {
if (this.st.settings.sound)
- new Audio("/sounds/newgame.
wav
").play().catch(() => {});
+ new Audio("/sounds/newgame.
flac
").play().catch(() => {});
this.$router.push("/game/" + gameInfo.id);
}
});
this.$router.push("/game/" + gameInfo.id);
}
});