Fixed: Usage of eval instead of JSON.parse for parsing JSON (#3016)

Using eval for parsing JSON is considered bad practice and is also slower
This commit is contained in:
daboe01
2022-03-21 13:07:44 +01:00
committed by GitHub
parent 1f2a257bab
commit bd84804e32
+1 -1
View File
@@ -483,7 +483,7 @@ var CPColorPanelSwatchesCookie = "CPColorPanelSwatchesCookie";
];
}
var cookieValue = eval(cookieValue);
var cookieValue = JSON.parse(cookieValue);
return [cookieValue arrayByApplyingBlock:function(value)
{