sysExtManager -> nativeExtMangaer
This commit is contained in:
@@ -60,7 +60,7 @@ class ComponentView {
|
||||
|
||||
if(component) {
|
||||
componentManager.activateComponent(component);
|
||||
console.log("Loading", $scope.component.name, $scope.getUrl(), component.valid_until, $scope.component);
|
||||
console.log("Loading", $scope.component.name, $scope.getUrl(), component.valid_until);
|
||||
|
||||
$scope.reloadStatus();
|
||||
}
|
||||
|
||||
@@ -3,13 +3,13 @@ let ClientDataDomain = "org.standardnotes.sn.components";
|
||||
|
||||
class ComponentManager {
|
||||
|
||||
constructor($rootScope, modelManager, syncManager, desktopManager, sysExtManager, $timeout, $compile) {
|
||||
constructor($rootScope, modelManager, syncManager, desktopManager, nativeExtManager, $timeout, $compile) {
|
||||
this.$compile = $compile;
|
||||
this.$rootScope = $rootScope;
|
||||
this.modelManager = modelManager;
|
||||
this.syncManager = syncManager;
|
||||
this.desktopManager = desktopManager;
|
||||
this.sysExtManager = sysExtManager;
|
||||
this.nativeExtManager = nativeExtManager;
|
||||
this.timeout = $timeout;
|
||||
this.streamObservers = [];
|
||||
this.contextStreamObservers = [];
|
||||
@@ -244,7 +244,7 @@ class ComponentManager {
|
||||
if(component.offlineOnly || (isDesktopApplication() && component.local_url)) {
|
||||
return component.local_url && component.local_url.replace("sn://", this.desktopManager.getApplicationDataPath() + "/");
|
||||
} else {
|
||||
return component.url || component.hosted_url;
|
||||
return component.hosted_url || component.url;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ class ComponentManager {
|
||||
removePrivatePropertiesFromResponseItems(responseItems, component, options = {}) {
|
||||
if(component) {
|
||||
// System extensions can bypass this step
|
||||
if(this.sysExtManager.isSystemExtension(component)) {
|
||||
if(this.nativeExtManager.isSystemExtension(component)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -548,7 +548,7 @@ class ComponentManager {
|
||||
|
||||
handleInstallLocalComponentMessage(sourceComponent, message) {
|
||||
// Only extensions manager has this permission
|
||||
if(!this.sysExtManager.isSystemExtension(sourceComponent)) {
|
||||
if(!this.nativeExtManager.isSystemExtension(sourceComponent)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* A class for handling installation of system extensions */
|
||||
|
||||
class SysExtManager {
|
||||
class NativeExtManager {
|
||||
|
||||
constructor(modelManager, syncManager, singletonManager) {
|
||||
this.modelManager = modelManager;
|
||||
@@ -89,4 +89,4 @@ class SysExtManager {
|
||||
|
||||
}
|
||||
|
||||
angular.module('app').service('sysExtManager', SysExtManager);
|
||||
angular.module('app').service('nativeExtManager', NativeExtManager);
|
||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -5781,9 +5781,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"sn-stylekit": {
|
||||
"version": "1.0.1195",
|
||||
"resolved": "https://registry.npmjs.org/sn-stylekit/-/sn-stylekit-1.0.1195.tgz",
|
||||
"integrity": "sha512-XPutiDkA0Jbf3fGHjC6avoWbMsLJKLOXnPJDpE2VFA2/HUf87sjyTvvhg8mrRT2IiE8Cr0gJFQr/ALnoP+u1EQ==",
|
||||
"version": "1.0.1196",
|
||||
"resolved": "https://registry.npmjs.org/sn-stylekit/-/sn-stylekit-1.0.1196.tgz",
|
||||
"integrity": "sha512-/6P0m4A+TEwJ6VxstiEzCCfBheWz5c8Y/B209cItqLX+9ltfg4yEUaTHG/Q/TMKPID8or4CiiMLzj+6SwuMqGQ==",
|
||||
"dev": true
|
||||
},
|
||||
"snake-case": {
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
"karma-cli": "^1.0.1",
|
||||
"karma-jasmine": "^1.1.0",
|
||||
"karma-phantomjs-launcher": "^1.0.2",
|
||||
"sn-stylekit": "^1.0.1195"
|
||||
"sn-stylekit": "^1.0.1196"
|
||||
},
|
||||
"license": "GPL-3.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user