view mod_conversejs/template.js @ 3809:a70f5a6c7f01

mod_rest: Apply Python source formatting on example
author Kim Alvefur <zash@zash.se>
date Wed, 01 Jan 2020 12:08:25 +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);
}