Skip to content

Commit bf2e02a

Browse files
committed
fix: remove redundant special cases
1 parent a268875 commit bf2e02a

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

oneko.js

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,9 @@
153153
const elapsedTimeRight = elapsedTime.getBoundingClientRect().right;
154154
const elapsedTimeLeft = elapsedTime.getBoundingClientRect().left;
155155

156-
// If the remaining time is on top right of the progress bar, make the cat sleep to the a little bit to the left of the remaining time
157-
// Theme compatibility
158-
if (remainingTimeLeft < progressBarRight && remainingTimeTop < progressBarBottom && progressBarTop - remainingTimeBottom < 32) {
159-
mousePosX = remainingTimeLeft - 16;
160-
161-
// Comfy special case
162-
if (Spicetify.Config.current_theme === "Comfy") {
163-
mousePosY = progressBarTop - 14;
164-
}
165-
166-
// Move the cat to the left of elapsed time if it is too close to the remaining time (Nord theme)
167-
if (remainingTimeLeft - elapsedTimeRight < 32) {
168-
mousePosX = elapsedTimeLeft - 16;
169-
}
156+
// Comfy special case
157+
if (Spicetify.Config.current_theme === "Comfy") {
158+
mousePosY = progressBarTop - 14;
170159
}
171160
}
172161

0 commit comments

Comments
 (0)