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); setSelectedEffectName(null);
setSelectedEffects([]); setSelectedEffects([]);
return; return;
case 'download': case 'download': {
//window.open(getCurrentPicture().src, '_blank'); const image = new Image();
image.src = getCurrentPictureUrl
const newWindow = window.open('');
newWindow.document.write(image.outerHTML);
return; return;
}
case 'zoom': case 'zoom':
setIsZoomed(!isZoomed); setIsZoomed(!isZoomed);
return; return;