Fix wrong assignement to const

This commit is contained in:
Yohan Boniface 2023-05-31 10:22:37 +02:00
parent 2c451a2941
commit b61b5a48a3

View file

@ -1259,7 +1259,7 @@ L.U.IframeExporter = L.Evented.extend({
build: function () { build: function () {
const iframeUrl = this.buildUrl() const iframeUrl = this.buildUrl()
const 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) {
code += `<p><a href="${this.baseUrl}">${L._('See full screen')}</a></p>` code += `<p><a href="${this.baseUrl}">${L._('See full screen')}</a></p>`
} }