Merge pull request 'This is prolly the most insane way todo it' (#1) from KrstlSkll69/spotifyAddToQueue.desktop:main into main
Reviewed-on: #1
This commit is contained in:
commit
a57453a0dc
1 changed files with 2 additions and 1 deletions
|
@ -21,9 +21,10 @@ app.on("browser-window-created", (_, win) => {
|
||||||
const addToQueueButton = document.createElement("button");
|
const addToQueueButton = document.createElement("button");
|
||||||
Object.assign(addToQueueButton.style, {
|
Object.assign(addToQueueButton.style, {
|
||||||
position: "relative",
|
position: "relative",
|
||||||
top: "16px",
|
top: "11px",
|
||||||
left: "0px"
|
left: "0px"
|
||||||
});
|
});
|
||||||
|
addToQueueButton.classList.add('gIjhme');
|
||||||
addToQueueButton.title = "Add to queue";
|
addToQueueButton.title = "Add to queue";
|
||||||
addToQueueButton.addEventListener("click", () => {
|
addToQueueButton.addEventListener("click", () => {
|
||||||
window.top.postMessage("vc-spotifyaddtoqueue__" + location.href.match(/https:\\/\\/open\\.spotify.com\\/embed\\/track\\/([a-zA-Z0-9]{0,200})\\?/ )[1], "*");
|
window.top.postMessage("vc-spotifyaddtoqueue__" + location.href.match(/https:\\/\\/open\\.spotify.com\\/embed\\/track\\/([a-zA-Z0-9]{0,200})\\?/ )[1], "*");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue