mirror of
https://github.com/hathach/tinyusb.git
synced 2025-10-30 04:03:07 +00:00
Use localstorage clear.
This commit is contained in:
parent
a0cb8aab50
commit
a9c51a7e65
@ -755,9 +755,7 @@
|
||||
await this.forgetAllPorts();
|
||||
|
||||
// Clear localStorage
|
||||
for (const key in localStorage) {
|
||||
localStorage.removeItem(key);
|
||||
}
|
||||
localStorage.clear();
|
||||
|
||||
// reload the page
|
||||
window.location.reload();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user