Added code to remove cookies from old save system
This commit is contained in:
@@ -687,6 +687,10 @@ CM.Config.SaveConfig = function(config) {
|
|||||||
* It is called by CM.DelayInit() and CM.Config.RestoreDefault()
|
* It is called by CM.DelayInit() and CM.Config.RestoreDefault()
|
||||||
*/
|
*/
|
||||||
CM.Config.LoadConfig = function(settings) {
|
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) {
|
if (settings != null) {
|
||||||
CM.Options = settings;
|
CM.Options = settings;
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ CM.Config.SaveConfig = function(config) {
|
|||||||
* It is called by CM.DelayInit() and CM.Config.RestoreDefault()
|
* It is called by CM.DelayInit() and CM.Config.RestoreDefault()
|
||||||
*/
|
*/
|
||||||
CM.Config.LoadConfig = function(settings) {
|
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) {
|
if (settings != null) {
|
||||||
CM.Options = settings;
|
CM.Options = settings;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user