aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2018-01-21 18:49:42 +0100
committerJonas Smedegaard <dr@jones.dk>2018-01-21 18:49:42 +0100
commit17857d03e0d4274d103195a1d7d19daae374ff40 (patch)
treeafee5f46cdafd3ac57b107e9102fb84fbae623e4
parent8d97b533ef2eca04bf08be959da7661497188197 (diff)
Generalize page depth.
-rw-r--r--src/js/world-staff.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/js/world-staff.js b/src/js/world-staff.js
index 2181881..2d390f5 100644
--- a/src/js/world-staff.js
+++ b/src/js/world-staff.js
@@ -1,10 +1,11 @@
//Load common code that includes config, then load the app logic for this page.
requirejs(['./slippymap'], function(_foo) {
+ var depth = '../../';
requirejs.config({
- baseUrl: '../../js/lib',
+ baseUrl: depth + 'js/lib',
});
requirejs(['app/mapfactory'], function(mkmap) {
- L.Icon.Default.imagePath = '../../img/leaflet/';
+ L.Icon.Default.imagePath = depth + 'img/leaflet/';
var map = mkmap('content');
requirejs([
'app/places',