diff --git a/extensions/renderer/resources/app_window_custom_bindings.js b/extensions/renderer/resources/app_window_custom_bindings.js index 4cb75c0739cc1..aa51d917d8c1a 100644 --- a/extensions/renderer/resources/app_window_custom_bindings.js +++ b/extensions/renderer/resources/app_window_custom_bindings.js @@ -203,7 +203,9 @@ appWindow.registerCustomHook(function(bindingsAPI) { apiFunctions.setHandleRequest('getAll', function() { var views = runtimeNatives.GetExtensionViews(-1, -1, 'APP_WINDOW'); return $Array.map(views, function(win) { - try_nw(win).nw.Window.get(); //construct the window object for NWJS#5294 + if (win.nw) { + try_nw(win).nw.Window.get(); //construct the window object for NWJS#5294 + } return try_hidden(win).chrome.app.window.current(); }); });