Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Object.entries(store.state.maps).map(async ([name, map]) => {
const src = map.replace('data:image/png;base64,', '');
const blob = await blobUtil.base64StringToBlob(src, 'image/png');
saveAs(blob, `allmatter_${name}.png`);
});
});