Index: ssts-web/src/main/webapp/disinfectsystem/test/takeVideoAndImg.js =================================================================== diff -u -r38847 -r40987 --- ssts-web/src/main/webapp/disinfectsystem/test/takeVideoAndImg.js (.../takeVideoAndImg.js) (revision 38847) +++ ssts-web/src/main/webapp/disinfectsystem/test/takeVideoAndImg.js (.../takeVideoAndImg.js) (revision 40987) @@ -418,9 +418,16 @@ contextBig.drawImage(videoShow, canvasLeft, canvasTop, maxWidth, maxHeight, 0, 0, maxWidth, maxHeight); /* 预览大图 */ var base64DataBig = canvasBig.toDataURL('image/jpeg', 1.0); - canvasBig.toBlob(function (blobObj) { - window.opener.blobs.push(blobObj); - }); + if(window.opener && window.opener.blobs){ + canvasBig.toBlob(function (blobObj) { + window.opener.blobs.push(blobObj); + }); + }else { + canvasBig.toBlob(function (blobObj) { + self.returnValue = blobObj; + }); + return + } var list = "