diff options
| author | sD <stoned@derpymail.org> | 2020-04-04 14:34:28 +0200 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-04-04 14:34:28 +0200 |
| commit | 60a9f47f9117c4188f5eae26642b79bc8d8f7c74 (patch) | |
| tree | 5d177fc40c4b42ce10d97d1acd5df21a53658f3b /webAO/encoding.js | |
| parent | eeb99309a07e45701f1b76676eec202bbf59a9c2 (diff) | |
use prepChat for music and more in general
Diffstat (limited to 'webAO/encoding.js')
| -rw-r--r-- | webAO/encoding.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/webAO/encoding.js b/webAO/encoding.js index 76e0b6d..3249617 100644 --- a/webAO/encoding.js +++ b/webAO/encoding.js @@ -82,4 +82,13 @@ export function decodeChat(estring) { } else { return estring; } +} + +/** + * XXX: a nasty hack made by gameboyprinter. + * @param {string} msg chat message to prepare for display + */ +export function prepChat(msg) { + // TODO: make this less awful + return unescapeChat(decodeChat(msg)); }
\ No newline at end of file |
