Skip to content

Commit 59ca3ea

Browse files
authored
Update footer.js
1 parent b7131c5 commit 59ca3ea

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

js/footer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,12 @@ themes.onchange = async () => {
9494
)
9595
) {
9696
localStorage.setItem('theme', themes.value);
97-
if (themes.value == 'summarizer.css')
97+
98+
if (themes.value == 'summarizer.css') {
99+
document.body.innerText = 'Please wait loading AI model...';
98100
await Summarizer.create(writeupsContext);
101+
}
102+
99103
reloadAll();
100104
} else {
101105
// Revert UI

0 commit comments

Comments
 (0)