actions: fix state export action (strict js error)

This commit is contained in:
jean-emmanuel 2017-05-19 11:35:49 +02:00
parent 0e86045317
commit a22162edcd
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,11 @@
# Changelog
## 0.18.0
## 0.17.8
- bug fixes
- regression breaking the state export button
## 0.17.7
- engine
- socket.io v2

View file

@ -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))