Fix minification error in updated download code

This commit is contained in:
chylex 2019-09-06 04:42:06 +02:00
parent 7e4ba4b0b3
commit 6d4edcc17e
2 changed files with 3 additions and 2 deletions

View File

@ -39,4 +39,5 @@ memoizedProps
props
children
channel
messages
messages
msSaveBlob

View File

@ -65,7 +65,7 @@ var DOM = (function(){
downloadTextFile: (fileName, fileContents) => {
var blob = new Blob([fileContents], { "type": "octet/stream" });
if (window.navigator.msSaveBlob){
if ("msSaveBlob" in window.navigator){
return window.navigator.msSaveBlob(blob, fileName);
}