Skip to content

Commit

Permalink
scriptfixerupper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
umbralOptimatum committed Aug 16, 2023
1 parent e4a4ec4 commit efb0436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scriptfixerupper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ var scriptName = 'scriptfixerupper';

function initFixerUpper() {
function clearLocalStorage() {
for (let i = localStorage.length - 1; i >= 0; i--){
const key = localStorage.key(i);
const keys = Object.keys(localStorage);
for (const key of keys) {
if (!key.startsWith('save') && !key.startsWith('player') && !key.startsWith('settings')) {
localStorage.removeItem(key);
}
Expand Down

0 comments on commit efb0436

Please sign in to comment.