Skip to content

Commit a062900

Browse files
committed
newwin: remove debug messages
1 parent 3ece452 commit a062900

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/resources/api_nw_newwin.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ function NWWindow(cWindow) {
141141
dispatchEventIfExists(self, 'onResized', [w.width, w.height]);
142142
}
143143
}
144-
console.log("cWindow id: " + this.cWindow.id);
145144
privates(this).menu = null;
146145
chrome.windows.onWindowChanged.addListener(updateWindowAttributes);
147146
}
@@ -240,7 +239,6 @@ NWWindow.prototype.on = function (event, callback, record) {
240239
break;
241240
case 'document-start':
242241
var cb1 = wrap(function(frame, top_routing_id) {
243-
console.log("document-start: cWindow: " + self.cWindow.id + "; top routing id: " + top_routing_id + "; main frame id: " + self.cWindow.tabs[0].mainFrameId);
244242
if (top_routing_id !== self.cWindow.tabs[0].mainFrameId)
245243
return;
246244
callback.call(self, frame);
@@ -249,7 +247,7 @@ NWWindow.prototype.on = function (event, callback, record) {
249247
break;
250248
case 'document-end':
251249
var cb0 = wrap(function(frame, top_routing_id) {
252-
console.log("document-end: cWindow: " + self.cWindow.id + "; top routing id: " + top_routing_id + "; main frame id: " + self.cWindow.tabs[0].mainFrameId);
250+
//console.log("document-end: cWindow: " + self.cWindow.id + "; top routing id: " + top_routing_id + "; main frame id: " + self.cWindow.tabs[0].mainFrameId);
253251
if (top_routing_id !== self.cWindow.tabs[0].mainFrameId)
254252
return;
255253
callback.call(self, frame);
@@ -760,7 +758,6 @@ function onLoadingStateChanged(status) {
760758
}
761759

762760
function onDocumentStartEnd(start, frame, top_routing_id) {
763-
console.log("--> onDocumentStartEnd: " + start + "; currentNWWindow: " + currentNWWindow);
764761
if (start) {
765762
//could use the non-NW version?
766763
dispatchEventNW("nw.Window.onDocumentStart", [frame, top_routing_id]);
@@ -782,7 +779,6 @@ function onClose(user_force) {
782779
}
783780

784781
function get_nw() {
785-
console.log("--> get_nw");
786782
appWindowNatives.FixGamePadAPI();
787783
var nw0 = try_nw(window).nw;
788784
if (nw0)

0 commit comments

Comments
 (0)