Name check on archive

This commit is contained in:
Mo Bitar
2018-10-25 09:49:50 -05:00
parent b03101ed60
commit 2664ccfcec

View File

@@ -91,6 +91,10 @@ class ArchiveManager {
contents = JSON.stringify(item.content, null, 2);
}
if(!name) {
name = "";
}
var blob = new Blob([contents], {type: 'text/plain'});
var filePrefix = name.replace(/\//g, "").replace(/\\+/g, "");