[Addon] Fix showMessageBox function 97/230797/2
authorws29.jung <ws29.jung@samsung.com>
Tue, 14 Apr 2020 07:39:33 +0000 (16:39 +0900)
committerws29.jung <ws29.jung@samsung.com>
Tue, 14 Apr 2020 08:36:57 +0000 (17:36 +0900)
commit5a06fa726679f88c0a0426b9671e981d20f9536e
tree6d36ee50eaae91b11d8f49de1b7e55b08a79be3b
parentbf1b85690af6a47676e835bb88e98ac528728962
[Addon] Fix showMessageBox function

Old version of Electron only had 'showMessageBox' function,
and it handled sync and async mode under binded C++ function.
Now new Electron export 'showMessageBoxSync' function separatly
and it works as sync mode of old 'showMessageBox'.
To handle both functions with one source code, this patch makes
addonapi method to use logical function fallback.

Change-Id: I97c06ebff302c7e3770166fe162c53ea251f05b0
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
wrt_app/addon/browser/modules/window.js