File

mod_conversejs/template.js @ 3958:cacd753848b2

mod_conversejs/README: Add an example of the URL to open
author Kim Alvefur <zash@zash.se>
date Mon, 30 Mar 2020 16:29:44 +0200
parent 3598:1921ae4449b8
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);
}