Declare directly fullUrl as a const

This commit is contained in:
Yohan Boniface 2023-06-26 08:09:19 +02:00
parent 05a029f261
commit d8dc71affc

View file

@ -1484,10 +1484,9 @@ L.U.IframeExporter = L.Evented.extend({
build: function () { build: function () {
const iframeUrl = this.buildUrl() const iframeUrl = this.buildUrl()
let fullUrl
let code = `<iframe width="${this.dimensions.width}" height="${this.dimensions.height}" frameborder="0" allowfullscreen allow="geolocation" src="${iframeUrl}"></iframe>` let code = `<iframe width="${this.dimensions.width}" height="${this.dimensions.height}" frameborder="0" allowfullscreen allow="geolocation" src="${iframeUrl}"></iframe>`
if (this.options.includeFullScreenLink) { if (this.options.includeFullScreenLink) {
fullUrl = this.buildUrl({ scrollWheelZoom: true }) const fullUrl = this.buildUrl({ scrollWheelZoom: true })
code += `<p><a href="${fullUrl}">${L._('See full screen')}</a></p>` code += `<p><a href="${fullUrl}">${L._('See full screen')}</a></p>`
} }
return code return code