Skip to content

Commit b473c6f

Browse files
committed
fix floating color misuse
1 parent 0078146 commit b473c6f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

floating.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,16 @@
165165
method = 1;
166166
}
167167

168+
if (message.method === 1 && method === 3) {
169+
$("#floating-container .positive, #floating-container .rest, #floating-container .onlyRest")
170+
.addClass("work")
171+
.removeClass("positive rest onlyRest");
172+
$("#time-left-msg").text(i18n.__('min-left'));
173+
$('#floating-bottom-bar').css("background-color", newWorkColor + "19");
174+
$('#floating-bottom-bar').css("display", "block");
175+
method = 1;
176+
}
177+
168178
if (message.method === 3 && method !== 3) {
169179
$(".work").addClass("positive");
170180
$(".work").removeClass("rest");

0 commit comments

Comments
 (0)