Fix error when suspend/resume on m63 16/209816/1
authorws29.jung <ws29.jung@samsung.com>
Thu, 11 Jul 2019 08:57:46 +0000 (17:57 +0900)
committerws29.jung <ws29.jung@samsung.com>
Thu, 11 Jul 2019 09:16:53 +0000 (18:16 +0900)
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 <ws29.jung@samsung.com>
wrt_app/browser/wrt_window.js

index d2cd792b8f0165ca294ef8a9375f6c197d48cb95..e3a597734449b2323e588008b68ed3c8f2d033e1 100644 (file)
@@ -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