view mod_conversejs/template.js @ 3758:900ea02ab00b

mod_log_json: Deregister log sink on unload Clean up after itself on unload. This also helps reinitialize the sink on reload.
author Kim Alvefur <zash@zash.se>
date Sat, 23 Nov 2019 04:53:16 +0100
parents 1921ae4449b8
children
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);
}