var logPanelFlag = window["$manifest$logPanel"]

if (logPanelFlag) {
	log = function(dummy) {
		var args = Array.prototype.slice.call(arguments)
		var logger = document.getElementById("logger") || undefined
		if (logger)
			logger.innerHTML += args.join(" ") + "<br>"
	}
} else {
	log = console.log.bind(console)
}

@@ -40,16 +40,43 @@
 gPanel%22%5D
+%0Avar logMessagesBuffer = %5B%5D
 %0A%0Aif (lo
@@ -244,55 +244,295 @@
 ger)
-%0A%09%09%09logger.innerHTML += args.join(%22 %22) + %22%3Cbr%3E%22
+ %7B%0A%09%09%09if (logMessagesBuffer.length %3E 0) %7B%0A%09%09%09%09for (var i = 0; i %3C logMessagesBuffer.length; ++i)%0A%09%09%09%09%09logger.innerHTML += logMessagesBuffer%5Bi%5D + %22%3Cbr%3E%22%0A%09%09%09%09logMessagesBuffer = %5B%5D%0A%09%09%09%7D%0A%09%09%09logger.innerHTML += args.join(%22 %22) + %22%3Cbr%3E%22%0A%09%09%7D else %7B%0A%09%09%09logMessagesBuffer.push(args.join(%22 %22))%0A%09%09%7D
 %0A%09%7D%0A

Add log messages buffer while loggerpanel is not initialized