mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-27 08:00:51 +01:00
Fix camera download button
This commit is contained in:
parent
1b646c7344
commit
5b6c8d9ce9
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user