Declare directly fullUrl as a const
This commit is contained in:
parent
05a029f261
commit
d8dc71affc
1 changed files with 1 additions and 2 deletions
|
@ -1484,10 +1484,9 @@ L.U.IframeExporter = L.Evented.extend({
|
|||
|
||||
build: function () {
|
||||
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>`
|
||||
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>`
|
||||
}
|
||||
return code
|
||||
|
|
Loading…
Reference in a new issue