Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Property extensionsPath added to the default settings together with the getter and setter methods

uggrock46411b53e4ee
diff --git a/data/js/settings.api.js b/data/js/settings.api.js
index 166510739..033289142 100644
--- a/data/js/settings.api.js
+++ b/data/js/settings.api.js
@@ -60,6 +60,7 @@ TSSETTINGS.DefaultSettings = {
"path":'/media'
},
],
+ "extensionsPath": "file:///Z://TagSpaces//repository//data//ext",
"extensions": [
{
"id": "editorText", // ID should be equal to the directory name where the ext. is located
@@ -123,6 +124,15 @@ TSSETTINGS.Settings = undefined;
//{"title":"2010","isFolder":true,"isLazy":true,"key":"z:\\Chronique\\2010"},
//];
+TSSETTINGS.getExtensionPath = function() {
+ // TODO if setting not existing create it automatically with directory
+ return TSSETTINGS.Settings["extensionsPath"];
+}
+
+TSSETTINGS.setExtensionPath = function(extPath) {
+ return TSSETTINGS.Settings["extensionsPath"] = extPath;
+}
+
TSSETTINGS.getNewTextFileContent = function() {
return TSSETTINGS.Settings["newTextFileContent"];
}