Add 'allow=geolcation' to iframe code

This commit is contained in:
Pieter Vander Vennet 2021-08-21 13:22:22 +02:00
parent 50d7d098a3
commit 40c1366ad0

View file

@ -172,7 +172,7 @@ export default class ShareScreen extends Combine {
const iframeCode = new VariableUiElement(
url.map((url) => {
return `<span class='literal-code iframe-code-block'>
&lt;iframe src="${url}" width="100%" height="100%" style="min-width: 25Opx; min-height: 250ox" title="${layout.title?.txt ?? "MapComplete"} with MapComplete"&gt;&lt;/iframe&gt
&lt;iframe src="${url}" allow="geolocation" width="100%" height="100%" style="min-width: 25Opx; min-height: 250ox" title="${layout.title?.txt ?? "MapComplete"} with MapComplete"&gt;&lt;/iframe&gt
</span>`
})
);