view mod_conversejs/template.js @ 3711:309fa523c424

mod_conversejs: Update compatibility section, pretty sure it works with 0.11
author Kim Alvefur <zash@zash.se>
date Fri, 11 Oct 2019 11:02:55 +0200
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);
}