Skip to content

Commit

Permalink
revert(loopyLoop): the local changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri committed Mar 8, 2024
1 parent c995789 commit 204555e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Extensions/loopyLoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,23 @@

Spicetify.Player.addEventListener("songchange", reset);

const startBtn = new Spicetify.ContextMenu.Item("Set start");
const startBtn = new _HTMLContextMenuItem({ name: "Set start" });
startBtn.onclick = () => {
start = mouseOnBarPercent;
if (end === null || start > end) {
end = 0.99;
}
drawOnBar();
};
const endBtn = new Spicetify.ContextMenu.Item("Set end");
const endBtn = new _HTMLContextMenuItem({ name: "Set end" });
endBtn.onclick = () => {
end = mouseOnBarPercent;
if (start === null || end < start) {
start = 0;
}
drawOnBar();
};
const resetBtn = new Spicetify.ContextMenu.Item("Reset");
const resetBtn = new _HTMLContextMenuItem({ name: "Reset" });
resetBtn.onclick = reset;

const contextMenu = document.createElement("div");
Expand Down

0 comments on commit 204555e

Please sign in to comment.