view mod_conversejs/templates/template.js @ 4191:e2728b540223

Merge
author JC Brand <jc@opkode.com>
date Mon, 12 Oct 2020 18:04:05 +0200
parents 6b2a1c9ef6e2
children 13b065432bf2
line wrap: on
line source

if(typeof converse == 'undefined') {
	var div = document.createElement("div");
	var noscript = document.getElementsByTagName("noscript")[0];
	div.innerHTML = noscript.innerText;
	document.body.appendChild(div);
} else {
	converse.initialize(%s);
}