actions: fix state export action (strict js error)
This commit is contained in:
parent
0e86045317
commit
a22162edcd
2 changed files with 7 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ module.exports = {
|
|||
},
|
||||
|
||||
stateSave: function() {
|
||||
state = JSON.stringify(module.exports.stateGet(),null,' ')
|
||||
var state = JSON.stringify(module.exports.stateGet(),null,' ')
|
||||
var down = $('<a download="'+new Date().toJSON().slice(0,10)+'_'+new Date().toJSON().slice(11,16)+'.preset"></a>')
|
||||
var blob = new Blob([state],{type : 'application/x-javascript'})
|
||||
down.attr('href', window.URL.createObjectURL(blob))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue