Reset builder when resetting the output
This commit is contained in:
1 parent
9509fe4670
commit
fc4e57cb0b
1 file changed
+1
@@ -8,6 +8,7 @@ const light = document.getElementById('light') as HTMLDivElement;
|
||||
const keypad = document.getElementById('keypad') as HTMLDivElement;
|
||||
|
||||
function resetCode() {
|
||||
builder = '';
|
||||
display.innerText = '_'.repeat(CODE.length);
|
||||
light.classList.remove('is-success', 'is-error');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user