mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
This commit is contained in:
parent
c44a19fdf0
commit
7afce9c3ac
|
|
@ -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]
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user