mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 18:58:28 +00:00
Fix prefer-global-this error
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
@@ -236,7 +236,7 @@ function initTable() {
|
||||
selectEl
|
||||
// fix dropdown if it would stick out right of the viewport
|
||||
.on("show.bs.select", function () {
|
||||
var winWidth = $(window).width();
|
||||
var winWidth = $(globalThis).width();
|
||||
var dropdownEl = $("body > .bootstrap-select.dropdown");
|
||||
if (dropdownEl.length > 0) {
|
||||
dropdownEl.removeClass("align-right");
|
||||
|
||||
Reference in New Issue
Block a user