Added code to remove cookies from old save system

This commit is contained in:
Daniel van Noord
2020-12-21 23:28:00 +01:00
parent 798f61cafe
commit 63ddf7fa38
2 changed files with 8 additions and 0 deletions

View File

@@ -687,6 +687,10 @@ CM.Config.SaveConfig = function(config) {
* It is called by CM.DelayInit() and CM.Config.RestoreDefault()
*/
CM.Config.LoadConfig = function(settings) {
// This removes cookies left from earlier versions of CookieMonster
if (typeof localStorage.CMConfig != "undefined") {
delete localStorage.CMConfig;
}
if (settings != null) {
CM.Options = settings;