Add service type in node worker, otherwise value of
"global.serviceType" is 'undefined', service app in
global service cannot work well.
Change-Id: I39fadd30c14b89f20b1bf817fe4d9db46f65eb44
Signed-off-by: liwei <wei90727.li@samsung.com>
import { isMainThread, parentPort, workerData } from 'worker_threads';
import { wrt } from '../browser/wrt';
+global.serviceType = wrt.getServiceModel();
+
function isServiceApplication() {
return global.serviceType !== 'UI';
}