Added code to remove cookies from old save system
This commit is contained in:
@@ -22,6 +22,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user