feat: clear btn in web
This commit is contained in:
@@ -53,6 +53,11 @@
|
||||
var numColor = parseInt(hexColor, 16);
|
||||
appState.changeColor(numColor, false);
|
||||
});
|
||||
let clearBtn = document.getElementById('clearBtn');
|
||||
clearBtn.addEventListener('click', function () {
|
||||
localStorage.clear();
|
||||
window.location.reload();
|
||||
});
|
||||
|
||||
function onError() {
|
||||
console.error('aboba');
|
||||
|
||||
Reference in New Issue
Block a user