From f61728e88626b9e85cb651732ac543f076f8ebfc Mon Sep 17 00:00:00 2001 From: "ws29.jung" Date: Thu, 11 Jul 2019 17:57:46 +0900 Subject: [PATCH] Fix error when suspend/resume on m63 fromId and getAllWindows Methods which are in WRTWindow class were executing binded function from TopLevelWindow class. However, TopLevelWindow class does not exist in m63. Instead of TopLevelWindow, BrowserWindow class in m63 has same functions and in m69, it is a child class of TopLevelWindow. Methods from TopLevelWindow is now subsituted to methods from BrowserWindow. Change-Id: I88607d1ded40d2daae9d74ea6e45f65272cf609d Signed-off-by: ws29.jung --- wrt_app/browser/wrt_window.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrt_app/browser/wrt_window.js b/wrt_app/browser/wrt_window.js index d2cd792..e3a5977 100644 --- a/wrt_app/browser/wrt_window.js +++ b/wrt_app/browser/wrt_window.js @@ -39,12 +39,12 @@ const isWindow = (win) => { } WRTWindow.fromId = (id) => { - const win = TopLevelWindow.fromId(id) + const win = BrowserWindow.fromId(id) return isWindow(win) ? win : null } WRTWindow.getAllWindows = () => { - return TopLevelWindow.getAllWindows().filter(isWindow) + return BrowserWindow.getAllWindows().filter(isWindow) } module.exports = WRTWindow -- 2.7.4