Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit 00678ba

Browse files
committed
refactor: remove unused connectivity update logic from main.ts
1 parent d80e444 commit 00678ba

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

main.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -69,33 +69,11 @@ export default class CssSnippetStore extends Plugin {
6969

7070
customButton.textContent = 'Browse';
7171
customButton.className = "mod-cta my-custom-button";
72-
73-
// Function to update the button text based on connectivity
74-
75-
76-
// Initial check
77-
/*
78-
updateButtonLabel(customButton);
79-
*/
80-
81-
/* // Update on connectivity change
82-
window.addEventListener('online', () => updateButtonLabel(customButton));
83-
window.addEventListener('offline', () => updateButtonLabel(customButton));*/
8472
}
8573
}
8674
}
8775
});
8876

89-
/* function updateButtonLabel(button: HTMLButtonElement) {
90-
if (true) {
91-
button.textContent = 'Browse';
92-
button.className = "mod-cta my-custom-button";
93-
} else {
94-
button.textContent = 'No Internet';
95-
button.className = "";
96-
}
97-
}*/
98-
9977
this.observer.observe(document.body, {
10078
childList: true,
10179
subtree: true,

0 commit comments

Comments
 (0)