mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-08 20:19:06 +03:00
nit: show spinner while user settings are loaded
This commit is contained in:
@@ -22,6 +22,15 @@ export class PopupController {
|
||||
this.translateTitles();
|
||||
this.setupEventListeners();
|
||||
this.render();
|
||||
this.hideLoadingOverlay();
|
||||
}
|
||||
|
||||
private hideLoadingOverlay(): void {
|
||||
const overlay = document.querySelector('.loading-overlay');
|
||||
if (overlay) {
|
||||
overlay.classList.add('hidden');
|
||||
setTimeout(() => overlay.remove(), 200);
|
||||
}
|
||||
}
|
||||
|
||||
private async loadData(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user