MCPcopy Create free account
hub / github.com/HelloZeroNet/ZeroNet / Console

Function Console

plugins/Sidebar/media/all.js:70–103  ·  view source on GitHub ↗
(sidebar)

Source from the content-addressed store, hash-verified

68 extend(Console, superClass);
69
70 function Console(sidebar) {
71 var handleMessageWebsocket_original;
72 this.sidebar = sidebar;
73 this.stopDragY = bind(this.stopDragY, this);
74 this.cleanup = bind(this.cleanup, this);
75 this.onClosed = bind(this.onClosed, this);
76 this.onOpened = bind(this.onOpened, this);
77 this.open = bind(this.open, this);
78 this.close = bind(this.close, this);
79 this.loadConsoleText = bind(this.loadConsoleText, this);
80 this.addLines = bind(this.addLines, this);
81 this.formatLine = bind(this.formatLine, this);
82 this.checkTextIsBottom = bind(this.checkTextIsBottom, this);
83 this.tag = null;
84 this.opened = false;
85 this.filter = null;
86 handleMessageWebsocket_original = this.sidebar.wrapper.handleMessageWebsocket;
87 this.sidebar.wrapper.handleMessageWebsocket = (function(_this) {
88 return function(message) {
89 if (message.cmd === "logLineAdd" && message.params.stream_id === _this.stream_id) {
90 return _this.addLines(message.params.lines);
91 } else {
92 return handleMessageWebsocket_original(message);
93 }
94 };
95 })(this);
96 if (window.top.location.hash === "#console") {
97 setTimeout(((function(_this) {
98 return function() {
99 return _this.open();
100 };
101 })(this)), 10);
102 }
103 }
104
105 Console.prototype.createHtmltag = function() {
106 if (!this.container) {

Callers

nothing calls this directly

Calls 2

openMethod · 0.80
bindFunction · 0.70

Tested by

no test coverage detected