somehow i lost this file and had to rewrite it. now it's even better than before!

This commit is contained in:
Henry Jameson 2024-09-19 21:42:14 +03:00
commit 0c91c37645
2 changed files with 38 additions and 11 deletions

View file

@ -519,17 +519,6 @@ export const init = ({
}
})
const serializedData = serialize(eager)
const file = new File(serializedData, 'ruleset.piss')
const blobUrl = URL.createObjectURL(file)
const a = document.createElement('a')
a.href = blobUrl
a.download = 'ruleset.piss'
document.body.appendChild(a)
a.dispatchEvent(new MouseEvent('click'))
URL.revokeObjectURL(blobUrl)
document.body.removeChild(a)
return {
lazy,
eager,