Skip to content

Commit f781150

Browse files
authored
docs: reset clears the project only, not all settings (#8539)
1 parent 62b8b17 commit f781150

File tree

1 file changed

+1
-1
lines changed
  • packages/website/src/components/Editor

1 file changed

+1
-1
lines changed

packages/website/src/components/Editor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export default function Editor({html, js, css, mainFile = "main.js", canShare =
127127
}
128128

129129
const reset = () => {
130-
localStorage.clear("project");
130+
localStorage.removeItem("project");
131131
location.hash = "";
132132
location.reload();
133133
}

0 commit comments

Comments
 (0)