[Addon] Check process type properly when loading addonapi 10/241410/1
authorhyunduk.kim <hyunduk.kim@samsung.com>
Thu, 20 Aug 2020 02:36:17 +0000 (11:36 +0900)
committerhyunduk.kim <hyunduk.kim@samsung.com>
Thu, 20 Aug 2020 02:43:00 +0000 (11:43 +0900)
commit10bc4ec93b134abdab5a88b41e5a14fde2d29c6a
tree68bad4966857ce649a29b240ff6ec8f23c32625b
parent4602d90a1c273e4ced1991e2b869d1b43f35a9ed
[Addon] Check process type properly when loading addonapi

In checking the condition to handle the path for addonapi
when require('addonapi') is called, it needs to check the
process type to know which process calls the module.

However, there's improper condition for process type.
That makes it unable to use addonapi regardless of process type.

This changes the condition so it can use addonapi
when the process type is valid.

Change-Id: I8c58c5f8d98041c2e21ce970b7a5a1ab927f8cf6
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
wrt_app/common/config-search-paths.ts