summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/mapper.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/assets/mapper.js b/assets/mapper.js
index e02553f..e4451a5 100644
--- a/assets/mapper.js
+++ b/assets/mapper.js
@@ -146,9 +146,12 @@ Categories.forEach(function(c) {
})
// Where do we get our JSON data from
-const api_base = 'http://localhost/data/'
-//const api_base = 'https://map.incommon.cc/data/'
-//const api_base = 'http://maps.dewey.be/api'
+if (location.href.includes('localhost')) {
+ const api_base = 'http://localhost/data/'
+} else {
+ const api_base = 'https://map.incommon.cc/data/'
+ //const api_base = 'http://maps.dewey.be/api'
+}
const cat_uri = api_base + '/categories.json'
/**