Let sheep land on webamp too
Some checks failed
Tests / tests (push) Has been cancelled

This commit is contained in:
Dustin Brett 2025-08-19 21:56:10 -07:00
parent c44a19fdf0
commit 7afce9c3ac
2 changed files with 6 additions and 2 deletions

View File

@ -382,7 +382,7 @@ window.Sheep = class eSheep {
let margin = 20;
if (this.HTMLelement) margin = 5;
for (const index in this.userOptions.collisionsWith) {
const els = document.body.getElementsByTagName(
const els = document.body.querySelectorAll(
this.userOptions.collisionsWith[index]
);

View File

@ -48,7 +48,11 @@ export const spawnSheep = (pickRandom?: boolean): Promise<void> =>
if (window.Sheep) {
const sheep = new window.Sheep({
allowPopup: "no",
collisionsWith: ["nav", "section"],
collisionsWith: [
"#__next main > nav", // Taskbar
".react-draggable section", // Windows
"#webamp .window", // Webamp Windows
],
footerMargin: TASKBAR_HEIGHT,
spawnContainer: document.querySelector("main") as HTMLElement,
});