prevented from using read ahead easy and hard in combination with highlight mode word

This commit is contained in:
Miodec 2021-03-20 15:21:28 +00:00
parent 48db619a8c
commit 6c8376e3f2

View file

@ -640,7 +640,10 @@ function toggleLiveAcc() {
function setHighlightMode(mode, nosave) {
if (
mode === "word" &&
(activeFunbox === "nospace" || activeFunbox === "read_ahead")
(activeFunbox === "nospace" ||
activeFunbox === "read_ahead" ||
activeFunbox === "read_ahead_easy" ||
activeFunbox === "read_ahead_hard")
) {
Notifications.add("Can't use word highlight with this funbox", 0);
return;