home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix unparser.quote bug.
[plomrogue2-experiments]
/
new2
/
rogue_chat_nocanvas_monochrome.html
diff --git
a/new2/rogue_chat_nocanvas_monochrome.html
b/new2/rogue_chat_nocanvas_monochrome.html
index 9c70d829b59ffbaa1f1cf1898a0a839afbabd209..7f1820f976793f39f28af3d996336cd60b879ed6 100644
(file)
--- a/
new2/rogue_chat_nocanvas_monochrome.html
+++ b/
new2/rogue_chat_nocanvas_monochrome.html
@@
-149,7
+149,7
@@
let unparser = {
let quoted = ['"'];
for (let i = 0; i < str.length; i++) {
let c = str[i];
let quoted = ['"'];
for (let i = 0; i < str.length; i++) {
let c = str[i];
- if (
c in ['"', '\\']
) {
+ if (
['"', '\\'].includes(c)
) {
quoted.push('\\');
};
quoted.push(c);
quoted.push('\\');
};
quoted.push(c);
@@
-415,7
+415,6
@@
server.websocket.onmessage = function (event) {
game.player_id = parseInt(tokens[1]);
} else if (tokens[0] === 'LOGIN_OK') {
server.send(['GET_GAMESTATE']);
game.player_id = parseInt(tokens[1]);
} else if (tokens[0] === 'LOGIN_OK') {
server.send(['GET_GAMESTATE']);
- tui.log_msg('@ ' + tokens[1]);
tui.log_help();
tui.switch_mode(mode_play);
} else if (tokens[0] === 'ANNOTATION') {
tui.log_help();
tui.switch_mode(mode_play);
} else if (tokens[0] === 'ANNOTATION') {