Skip to content

Commit b81e5b7

Browse files
committed
Addon to #87: After merging, update the version.
Once the settings have been merged, they're considered updated. The version string should reflect this so we don't need to do this more than once.
1 parent 59bd75f commit b81e5b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/core/init.js

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ init = {
2525
if (cookie) {
2626
if (cookie.version == config.version) config.settings = cookie;
2727
else config.settings = objMerge(config.settings, cookie);
28+
// After merging, update the version.
29+
config.settings.version = config.defaultSettings.version;
2830
}
2931
},
3032

0 commit comments

Comments
 (0)