bug fixes

This commit is contained in:
David Ralph
2021-01-17 16:25:21 +00:00
parent 3ec5a2c199
commit a9c06fd935
27 changed files with 180 additions and 127 deletions

View File

@@ -1,7 +1,9 @@
const defaultSettings = require('../default_settings.json');
const saveFile = (data, filename = 'file') => {
if (typeof data === 'object') data = JSON.stringify(data, undefined, 4);
if (typeof data === 'object') {
data = JSON.stringify(data, undefined, 4);
}
const blob = new Blob([data], { type: 'text/json' });
let e = document.createEvent('MouseEvents');