Check WRTWindow.setup to launch App 93/209393/3
authorws29.jung <ws29.jung@samsung.com>
Fri, 5 Jul 2019 08:38:39 +0000 (17:38 +0900)
committerws29.jung <ws29.jung@samsung.com>
Mon, 8 Jul 2019 10:23:12 +0000 (19:23 +0900)
Currently same wrtjs is used in m63 and m69 Chromium-efl
but supported methods from each library are different.
The WRTWindow.setup() method is only provided by m69 and
to launch Webapp on latest m63 Chromium-efl, the method
need to be checked whether it is accessible.

Change-Id: I44800e3f7209b86954cf3f65c118458173e34750
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
wrt_app/browser/wrt_window.js

index b4eb6c5cda6543f69f3119d560b9ed8eeace253b..d2cd792b8f0165ca294ef8a9375f6c197d48cb95 100644 (file)
@@ -22,7 +22,8 @@ Object.setPrototypeOf(WRTWindow.prototype, BrowserWindow.prototype)
 
 WRTWindow.prototype._init = function () {
   BrowserWindow.prototype._init.call(this)
-  this.setup()
+  if (typeof this.setup === 'function')
+    this.setup()
   let self = this
   this.webContents.on('new-window', (event, url, frameName, disposition, options) => {
     event.preventDefault()