From d8dc71affc52399845edc031507a50ca0f00acc3 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 26 Jun 2023 08:09:19 +0200 Subject: [PATCH] Declare directly fullUrl as a const --- umap/static/umap/js/umap.controls.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index 9c33c067..58357fa6 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -1484,10 +1484,9 @@ L.U.IframeExporter = L.Evented.extend({ build: function () { const iframeUrl = this.buildUrl() - let fullUrl let code = `` if (this.options.includeFullScreenLink) { - fullUrl = this.buildUrl({ scrollWheelZoom: true }) + const fullUrl = this.buildUrl({ scrollWheelZoom: true }) code += `

${L._('See full screen')}

` } return code