annotate mod_conversejs/template.js @ 4058:cf9a1c7d558d

mod_muc_rai: Don't store/modify existing table to track rooms This was a simple bug that took a while to track down.
author Matthew Wild <mwild1@gmail.com>
date Thu, 02 Jul 2020 12:17:53 +0100
parents 1921ae4449b8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3598
1921ae4449b8 mod_conversejs: Separate out templates into separate configurable files (breaks 0.9 compat)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 if(typeof converse == 'undefined') {
1921ae4449b8 mod_conversejs: Separate out templates into separate configurable files (breaks 0.9 compat)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2 var div = document.createElement("div");
1921ae4449b8 mod_conversejs: Separate out templates into separate configurable files (breaks 0.9 compat)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 var noscript = document.getElementsByTagName("noscript")[0];
1921ae4449b8 mod_conversejs: Separate out templates into separate configurable files (breaks 0.9 compat)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 div.innerHTML = noscript.innerText;
1921ae4449b8 mod_conversejs: Separate out templates into separate configurable files (breaks 0.9 compat)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 document.body.appendChild(div);
1921ae4449b8 mod_conversejs: Separate out templates into separate configurable files (breaks 0.9 compat)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6 } else {
1921ae4449b8 mod_conversejs: Separate out templates into separate configurable files (breaks 0.9 compat)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7 converse.initialize(%s);
1921ae4449b8 mod_conversejs: Separate out templates into separate configurable files (breaks 0.9 compat)
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8 }