Skip to content
Snippets Groups Projects
Commit 50dfd22a authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'pregmod-master' into 'pregmod-master'

sugarcube update

See merge request pregmodfan/fc-pregmod!1958
parents 55ba5bb7 c3731340
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -7,15 +7,17 @@ The first is to speed up loading the file. ...@@ -7,15 +7,17 @@ The first is to speed up loading the file.
Edit the sugarcube header and change: Edit the sugarcube header and change:
[{key:"_serialize",value:function(e) return Object.freeze {key:"_serialize",value:function(e)
...
return Object.freeze
Into this Into this
[{key:"_serialize",value:function(e) [{key:"_serialize",value:function(e)
/* look here for changes */ /* look here for changes */
{return JSON.stringify(e)}},{key:"_deserialize",value:function(e){return JSON.parse((!e || e[0]=="{")?e:LZString.decompressFromUTF16(e))}}]),e}(); {return JSON.stringify(e)}},{key:"_deserialize",value:function(e){return JSON.parse((!e || e[0]=="{")?e:LZString.decompressFromUTF16(e))}}]),e}();
/* changes end here */ /* changes end here */
return Object.freeze return Object.freeze
CHANGE 2: Remember scroll position CHANGE 2: Remember scroll position
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment