Skip to content

Commit

Permalink
add alert for no fonts selected
Browse files Browse the repository at this point in the history
  • Loading branch information
marciska committed Sep 28, 2024
1 parent 835b973 commit c80b741
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Jitai.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,12 @@ p.font_legend {
.then(checkIfWebfontsLocallyInstalled)
.then(addPreconnectLinks)
.then(settingsLoad)
.then(() => {setup_complete = true;});
.then(() => {
setup_complete = true;
if (font_pool_selected.length === 0) {
alert(script_name+' detected that you have no custom fonts selected. Click the cog on the top left to select some.\n\nIf you had some selected before and now they are suddenly gone... sorry, I\'m quite forgetful sometimes :\'(')
}
});
}

function onReviewsPage() {
Expand Down

0 comments on commit c80b741

Please sign in to comment.