TagSpaces is an offline, open source, document manager with tagging support
feat: added support for extconfig.json for web
Ilian Sapundshievc4f46d537673
diff --git a/src/renderer/reducers/index.ts b/src/renderer/reducers/index.tsindex b698eb484..bbe1bd56e 100644--- a/src/renderer/reducers/index.ts+++ b/src/renderer/reducers/index.ts@@ -157,9 +157,13 @@ let externalSearches = false;configureApp(window); // Configuring from extconfig.js if loaded+// for electron prod: '../../../../extconfig.json' for run dev 'extconfig.json' in public/+const extConfigPath = AppConfig.isWeb+ ? 'extconfig.json'+ : '../../../../extconfig.json';+const xhr = new XMLHttpRequest();-// for prod: '../../../../extconfig.json' for run dev 'extconfig.json' in public/-xhr.open('GET', '../../../../extconfig.json', false); // false = synchronous+xhr.open('GET', extConfigPath, false); // false = synchronoustry {xhr.send(); // Will pause execution here until it finishes or fails// Status 200 is for HTTP servers, Status 0 is for local file:// protocol