mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-15 21:05:22 +01:00
fix no-prototype-builtins lint issue
This commit is contained in:
parent
21fc1e2832
commit
688f287dfe
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue