[Service] Changes 'DAEMON' to 'GLOBAL' 43/247743/1
authorDongHyun Song <dh81.song@samsung.com>
Mon, 16 Nov 2020 05:10:57 +0000 (14:10 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Mon, 16 Nov 2020 05:14:57 +0000 (14:14 +0900)
'global' wrt-service is more common name than 'daemon'

Related chromium-efl patch:
  https://review.tizen.org/gerrit/247741/

Change-Id: I9139832bc0cf4d2ce6a6b916c1e98ba984e4e5ed
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/common/service_runner.ts
wrt_app/common/wrt_xwalk_extension.ts

index 3118d89..e8b912d 100644 (file)
@@ -14,7 +14,7 @@ function isServiceApplication() {
 }
 
 function isGlobalService() {
-  return global['serviceType'] === 'DAEMON';
+  return global['serviceType'] === 'GLOBAL';
 }
 
 function registerExtensionResolver(id: string) {
index f7ba13d..1204a81 100644 (file)
@@ -118,7 +118,7 @@ class XWalkExtension {
 
     var api = (ext.use_trampoline) ? api_ : global;
     var extension_api = ext.jsapi;
-    if (global.serviceType === 'DAEMON' && ext.name === 'xwalk') {
+    if (global.serviceType === 'GLOBAL' && ext.name === 'xwalk') {
       console.log(`Delete freeze exports.utils for override method`);
       extension_api = extension_api.replace('Object.freeze(exports.utils);', '');
       extension_api = extension_api.replace('Object.freeze(Utils.prototype);', '');