/* A very simple client that shows a basic usage of the pz2.js
*/
-// "use strict"; // HTML5
+"use strict"; // HTML5: disable for debug >= 2
// global config object mkws_config
if (!mkws_config)
if (lang == l) {
data += l;
} else {
- data += ' <a href="/?lang=' + l + '">' + l + '</a> '
+ data += ' <a href="?lang=' + l + '">' + l + '</a> '
}
}
function debug(string) {
if (!mkws_debug)
return;
-
- var console; // IE8 quirks
- if (!console) { /* ARGH!!! */
+
+ if (typeof console === "undefined" || typeof console.log === "undefined") { /* ARGH!!! */
return;
}