Fix camera download button

This commit is contained in:
Bill 2021-08-08 22:57:29 -04:00
parent 1b646c7344
commit 5b6c8d9ce9

View File

@ -134,9 +134,15 @@ export const CameraWidgetEditorView: FC<CameraWidgetEditorViewProps> = props =>
setSelectedEffectName(null);
setSelectedEffects([]);
return;
case 'download':
//window.open(getCurrentPicture().src, '_blank');
case 'download': {
const image = new Image();
image.src = getCurrentPictureUrl
const newWindow = window.open('');
newWindow.document.write(image.outerHTML);
return;
}
case 'zoom':
setIsZoomed(!isZoomed);
return;