summaryrefslogtreecommitdiffstats
path: root/loleaflet/src/map/Map.js
diff options
context:
space:
mode:
Diffstat (limited to 'loleaflet/src/map/Map.js')
-rw-r--r--loleaflet/src/map/Map.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 67bac9bfdc..5f9882a53d 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -386,6 +386,11 @@ L.Map = L.Evented.extend({
if (lastModButton !== null && lastModButton !== undefined
&& lastModButton.firstChild.innerHTML !== null
&& lastModButton.firstChild.childElementCount == 0) {
+ if (this._lastmodtime == null) {
+ // No modification time -> hide the indicator
+ lastModButton.innerHTML = '';
+ return;
+ }
var mainSpan = document.createElement('span');
var label = document.createTextNode(_('Last modification'));
var separator = document.createTextNode(': ');