diff --git a/app/scripts.babel/bkg/common.js b/app/scripts.babel/bkg/common.js index 4c173403..34b40fb7 100644 --- a/app/scripts.babel/bkg/common.js +++ b/app/scripts.babel/bkg/common.js @@ -105,7 +105,7 @@ const checkDependencies = `import groovy.json.JsonOutput; import org.nuxeo.ecm.admin.runtime.RuntimeInstrospection; import org.nuxeo.runtime.api.Framework; - def pm = Framework.getLocalService(PackageManager.class); + def pm = Framework.getService(PackageManager.class); def snapshotPkg = StudioSnapshotHelper.getSnapshot(pm.listRemoteAssociatedStudioPackages()); def nxInstance = PlatformVersionHelper.getPlatformFilter(); diff --git a/app/scripts.babel/popup.js b/app/scripts.babel/popup.js index 24557930..6fd3dbda 100644 --- a/app/scripts.babel/popup.js +++ b/app/scripts.babel/popup.js @@ -26,7 +26,7 @@ limitations under the License. import org.nuxeo.ecm.admin.runtime.RuntimeInstrospection; import org.nuxeo.runtime.api.Framework; - def pm = Framework.getLocalService(PackageManager.class); + def pm = Framework.getService(PackageManager.class); def snapshotPkg = StudioSnapshotHelper.getSnapshot(pm.listRemoteAssociatedStudioPackages()); def pkgName = snapshotPkg == null ? null : snapshotPkg.getName(); def bundles = RuntimeInstrospection.getInfo(); @@ -37,7 +37,7 @@ limitations under the License. import org.nuxeo.connect.packages.PackageManager; import org.nuxeo.runtime.api.Framework; - def pm = Framework.getLocalService(PackageManager.class); + def pm = Framework.getService(PackageManager.class); def addons = pm.listInstalledPackagesNames(); println JsonOutput.toJson([installed: addons]);`;