view mod_conversejs/templates/template.js @ 4187:e2db07017332

mod_register_apps: Fix removal of apps from array on unload
author Kim Alvefur <zash@zash.se>
date Sat, 10 Oct 2020 16:54:06 +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);
}