Skip to content

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

added the ability to have external configuration

Ilian Sapundshievde167e5e1ff4
diff --git a/.gitignore b/.gitignore
index 7591e8e98..dd42f4e1e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,3 +76,7 @@ web/files
web/node_modules
web/LICENSE.txt
web/third-party.txt
+
+app/extconfig.js
+web/extconfig.js
+cordova/www/extconfig.js
diff --git a/app/app.html b/app/app.html
index 79bcdfcc5..d0c5681c6 100644
--- a/app/app.html
+++ b/app/app.html
@@ -8,6 +8,7 @@
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link rel="stylesheet" type="text/css" href="./dist/style.css">
+ <script type="text/javascript" src="./extconfig.js"></script>
<script defer type="text/javascript" src="./dist/bundle.js"></script>
</head>
<body style="overflow: hidden; margin: 0; padding: 0;">
diff --git a/app/appd.html b/app/appd.html
index 8c3e26f00..fd6d5dc02 100644
--- a/app/appd.html
+++ b/app/appd.html
@@ -7,6 +7,7 @@
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
+ <script type="text/javascript" src="./extconfig.js"></script>
<script type="text/javascript">
{
if (!process.env.HOT) {
diff --git a/web/index.html b/web/index.html
index 4f7c62ee4..9e6c3f43c 100644
--- a/web/index.html
+++ b/web/index.html
@@ -8,6 +8,7 @@
<meta charset="utf-8">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link rel="stylesheet" type="text/css" href="dist/style.css">
+ <script type="text/javascript" src="extconfig.js"></script>
</head>
<body style="overflow: hidden; margin: 0; padding: 0;">
<div id="root">