From 9f6482218d845266c0d6505c871901e3f5eabb32 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 25 Jan 2021 15:44:24 +0100 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index c665de3f44..2929e47647 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -1098,8 +1098,7 @@ module.exports = (_ => { let app = document.querySelector(BDFDB.dotCN.app) || document.body; if (!app) return; let id = BDFDB.NumberUtils.generateId(Toasts); - let orientation = ToastOrientations[config.orientation] || ""; - let toasts = document.querySelector(BDFDB.dotCN.toasts + (orientation ? BDFDB.dotCN[orientation] : "")); + let toasts = document.querySelector(BDFDB.dotCN.toasts)); if (!toasts) { let leftSideRects = BDFDB.DOMUtils.getRects(document.querySelector(BDFDB.dotCN.channels + " + div")); let rightSideRects = BDFDB.DOMUtils.getRects(document.querySelector(BDFDB.dotCNC.memberswrap + BDFDB.dotCN.peoplesnowplayingcolumn)); @@ -1107,7 +1106,7 @@ module.exports = (_ => { let left = leftSideRects && typeof leftSideRects.left == "number" && leftSideRects.left || 310; let right = rightSideRects && typeof rightSideRects.width == "number" && rightSideRects.width || 240; let bottom = bottomRects && typeof bottomRects.height == "number" && (bottomRects.height + 10) || 85; - toasts = BDFDB.DOMUtils.create(`
`); + toasts = BDFDB.DOMUtils.create(`
`); app.appendChild(toasts); } let toast = BDFDB.DOMUtils.create(`
`);