ayarlar sayfasına kapatma butonu ekleme denemesi.

This commit is contained in:
2026-07-28 06:42:11 +02:00
parent 8cf08ec82d
commit 21396e96d3
2 changed files with 5 additions and 5 deletions
+5
View File
@@ -97,6 +97,11 @@ async function render() {
pb.authStore.clear();
render();
});
document.getElementById("closeBtn").addEventListener("click", () => {
activeTab = "desktop";
render();
});
}
function renderLogin() {
-5
View File
@@ -41,11 +41,6 @@ export async function renderSettings(pb, currentBg, onBgSelect) {
</div>
`;
document.getElementById("closeBtn").addEventListener("click", () => {
activeTab = "desktop";
render();
});
return {
html,
initEvents: (container) => {