Skip to content

Commit 5f8877f

Browse files
change safari download to `application/octet-stream'
1 parent 0f5022e commit 5f8877f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snapshot/filesaver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var fileSaver = function(url, name) {
3434
// First try a.download, then web filesystem, then object URLs
3535
if(isSafari) {
3636
// Safari doesn't allow downloading of blob urls
37-
document.location.href = 'data:attachment/file' + url.slice(url.search(/[,;]/));
37+
document.location.href = 'data:application/octet-stream' + url.slice(url.search(/[,;]/));
3838
resolve(name);
3939
}
4040

0 commit comments

Comments
 (0)