diff --git a/teammapper-frontend/mmp/src/map/handlers/export.ts b/teammapper-frontend/mmp/src/map/handlers/export.ts index 2507596f..9b0c1f11 100644 --- a/teammapper-frontend/mmp/src/map/handlers/export.ts +++ b/teammapper-frontend/mmp/src/map/handlers/export.ts @@ -71,7 +71,10 @@ export default class Export { if (typeof type === 'string') { type = 'image/' + type } - + // Safari seems to have an issue with loading all included images on time during the download of the data url. + // This is a small workaround, as calling toBlob before seems to solve the problem most of the times. + canvas.toBlob(() => {}) + callback(canvas.toDataURL(type)) this.map.events.call(Event.exportImage) }