Added prettier (#661)
* Added prettier * Added prettier * Added prettier
This commit is contained in:
@@ -7,11 +7,21 @@ import InitData from '../Sim/InitializeData/InitData';
|
||||
* "do stuff with the string data you saved previously"
|
||||
*/
|
||||
export default function load(str) {
|
||||
const save = JSON.parse(str);
|
||||
InitData();
|
||||
LoadConfig(save.settings);
|
||||
if (save.version !== `${VersionMajor}.${VersionMinor}`) {
|
||||
if (Game.prefs.popups) Game.Popup('A new version of Cookie Monster has been loaded, check out the release notes in the info tab!');
|
||||
else Game.Notify('A new version of Cookie Monster has been loaded, check out the release notes in the info tab!', '', '', 0, 1);
|
||||
}
|
||||
const save = JSON.parse(str);
|
||||
InitData();
|
||||
LoadConfig(save.settings);
|
||||
if (save.version !== `${VersionMajor}.${VersionMinor}`) {
|
||||
if (Game.prefs.popups)
|
||||
Game.Popup(
|
||||
'A new version of Cookie Monster has been loaded, check out the release notes in the info tab!',
|
||||
);
|
||||
else
|
||||
Game.Notify(
|
||||
'A new version of Cookie Monster has been loaded, check out the release notes in the info tab!',
|
||||
'',
|
||||
'',
|
||||
0,
|
||||
1,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user