From a5a2f5a259fb0b96acf86a902b5b51754d8e4c6d Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Fri, 30 Jun 2023 00:45:09 -0400 Subject: [PATCH] feat(showcase): add a back-to-directory button --- src/components/settings.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/settings.js b/src/components/settings.js index 00a0e4a..3cac66b 100644 --- a/src/components/settings.js +++ b/src/components/settings.js @@ -477,6 +477,7 @@ export default class Settings { + ` @@ -734,7 +735,11 @@ export default class Settings { id: "use_start_animation", event: "click", handler: e => { this.#useStartAnimation = e.currentTarget.checked; } - }, + }, { + id: "settings_to_directory", event: "click", handler: () => { + window.location.href = '/'; + } + } ] listeners.forEach(listener => {