diff options
author | marzavec <admin@marzavec.com> | 2018-05-20 00:15:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-20 00:15:34 +0200 |
commit | 7ccbf56eebc341e78737d0ff7e2a6a3c47a62281 (patch) | |
tree | 26d944fa1f36480264b7790aef5285393e97fcdd /client/client.js | |
parent | Highlight Hotfix (diff) | |
parent | npm has been pkged with node for awhile now; we neednt list every pkg manager... (diff) | |
download | hackchat-7ccbf56eebc341e78737d0ff7e2a6a3c47a62281.tar.gz hackchat-7ccbf56eebc341e78737d0ff7e2a6a3c47a62281.zip |
Merge pull request #12 from neelkamath/master
Documentation
Diffstat (limited to 'client/client.js')
-rw-r--r-- | client/client.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/client/client.js b/client/client.js index 1c40f01..53f2856 100644 --- a/client/client.js +++ b/client/client.js @@ -36,13 +36,13 @@ function $(query) { function localStorageGet(key) { try { return window.localStorage[key] - } catch(e) { } + } catch (e) { } } function localStorageSet(key, val) { try { window.localStorage[key] = val - } catch(e) { } + } catch (e) { } } var ws; @@ -214,10 +214,12 @@ function pushMessage(args) { // Temporary hotfix for \rule spamming, see https://github.com/Khan/KaTeX/issues/109 textEl.innerHTML = textEl.innerHTML.replace(/\\rule|\\\\\s*\[.*?\]/g, ''); try { - renderMathInElement(textEl, {delimiters: [ - { left: "$$", right: "$$", display: true }, - { left: "$", right: "$", display: false }, - ]}) + renderMathInElement(textEl, { + delimiters: [ + { left: "$$", right: "$$", display: true }, + { left: "$", right: "$", display: false }, + ] + }) } catch (e) { console.warn(e); } @@ -601,4 +603,4 @@ if (myChannel == '') { $('#sidebar').classList.add('hidden'); } else { join(myChannel); -} +}
\ No newline at end of file |