somehow i lost this file and had to rewrite it. now it's even better than before!
This commit is contained in:
parent
af3b2e3dc9
commit
0c91c37645
2 changed files with 38 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue