Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
eslint: Fix unicorn/prefer-node-append and unicorn/prefer-node-remove.
Anders Kaseorg62dfee493054
diff --git a/static/js/scroll_bar.js b/static/js/scroll_bar.jsindex cfd8b4a0aa9..e856a64be4a 100644--- a/static/js/scroll_bar.js+++ b/static/js/scroll_bar.js@@ -13,7 +13,7 @@ function getScrollbarWidth() {outer.style.width = "100px";outer.style.msOverflowStyle = "scrollbar"; // needed for WinJS apps- document.body.appendChild(outer);+ document.body.append(outer);const widthNoScroll = outer.offsetWidth;// force scrollbars@@ -22,12 +22,12 @@ function getScrollbarWidth() {// add innerdivconst inner = document.createElement("div");inner.style.width = "100%";- outer.appendChild(inner);+ outer.append(inner);const widthWithScroll = inner.offsetWidth;// remove divs- outer.parentNode.removeChild(outer);+ outer.remove();return widthNoScroll - widthWithScroll;}