mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-14 14:41:28 +00:00
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:
@@ -483,7 +483,7 @@ var CPColorPanelSwatchesCookie = "CPColorPanelSwatchesCookie";
|
||||
];
|
||||
}
|
||||
|
||||
var cookieValue = eval(cookieValue);
|
||||
var cookieValue = JSON.parse(cookieValue);
|
||||
|
||||
return [cookieValue arrayByApplyingBlock:function(value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user