mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
broadway: Add debug logging framework for js
This commit is contained in:
parent
e2f8215751
commit
c2ce462486
@ -1,3 +1,16 @@
|
||||
/* Helper functions for debugging */
|
||||
var logDiv = null;
|
||||
function log(str) {
|
||||
if (!logDiv) {
|
||||
logDiv = document.createElement('div');
|
||||
document.body.appendChild(logDiv);
|
||||
logDiv.style["position"] = "absolute";
|
||||
logDiv.style["right"] = "0px";
|
||||
}
|
||||
logDiv.appendChild(document.createTextNode(str));
|
||||
logDiv.appendChild(document.createElement('br'));
|
||||
}
|
||||
|
||||
var base64_val = [
|
||||
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
|
||||
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
|
||||
|
Loading…
Reference in New Issue
Block a user