Skip to content

Commit

Permalink
feat: remove clear data fix
Browse files Browse the repository at this point in the history
  • Loading branch information
khui0 committed Apr 22, 2024
1 parent dede654 commit 0115425
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ <h1><span class="code" data-modal-view="settings/code">000</span></h1>
</div>
<button class="pill space" id="submit-button">Submit</button>
</div>
<!-- Controls -->
<div id="controls-container" class="pill">
<button class="icon" data-modal-view="settings">
<i class="bi bi-gear"></i>
Expand All @@ -134,9 +135,9 @@ <h1><span class="code" data-modal-view="settings/code">000</span></h1>
<button class="icon" data-modal-view="history">
<i class="bi bi-clock-history"></i>
</button>
<button class="icon" data-modal-view="clear-data-fix">
<!-- <button class="icon" data-modal-view="clear-data-fix">
<i class="bi bi-exclamation-triangle"></i>
</button>
</button> -->
</div>
<!-- Symbols -->
<dialog data-modal-page="symbols" data-page-title="Symbols">
Expand Down
10 changes: 5 additions & 5 deletions src/clicker/clicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ let historyIndex = 0;
ui.view("settings/code");
}
// Show clear data fix guide
if (storage.get("created")) {
document.querySelector(`[data-modal-view="clear-data-fix"]`).remove();
} else {
storage.set("created", Date.now());
}
// if (storage.get("created")) {
// document.querySelector(`[data-modal-view="clear-data-fix"]`).remove();
// } else {
// storage.set("created", Date.now());
// }
// Focus question input
questionInput.focus();
// Set default answer mode
Expand Down

0 comments on commit 0115425

Please sign in to comment.