From 17857d03e0d4274d103195a1d7d19daae374ff40 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 21 Jan 2018 18:49:42 +0100 Subject: Generalize page depth. --- src/js/world-staff.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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', -- cgit v1.2.3