fix no-prototype-builtins lint issue

This commit is contained in:
Val Erastov 2022-08-15 01:27:10 -07:00
parent 21fc1e2832
commit 688f287dfe

View file

@ -33,10 +33,7 @@ function SketchList() {
const items = useMemo(() => {
let theItems = [];
for (let name in localStorage) {
if (!localStorage.hasOwnProperty(name)) {
continue;
}
for (let name of Object.keys(localStorage)) {
if (name.indexOf(SKETCHER_STORAGE_PREFIX) === 0) {
name = name.substring(SKETCHER_STORAGE_PREFIX.length);
}