mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix lint (#11213)
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
export default function() {
|
export default function () {
|
||||||
const outletSelector = [
|
const outletSelector = [
|
||||||
".above-site-header-outlet",
|
".above-site-header-outlet",
|
||||||
".below-site-header-outlet"
|
".below-site-header-outlet",
|
||||||
];
|
];
|
||||||
// If these outlets have height they impact timeline and usercard positioning
|
// If these outlets have height they impact timeline and usercard positioning
|
||||||
|
|
||||||
let outletHeights = 0;
|
let outletHeights = 0;
|
||||||
|
|
||||||
outletSelector.forEach(function(outletClass) {
|
outletSelector.forEach(function (outletClass) {
|
||||||
if (document.querySelector(outletClass)) {
|
if (document.querySelector(outletClass)) {
|
||||||
let outlets = document.querySelectorAll(outletClass);
|
let outlets = document.querySelectorAll(outletClass);
|
||||||
outlets.forEach(outlet => {
|
outlets.forEach((outlet) => {
|
||||||
if (outlet.offsetHeight) {
|
if (outlet.offsetHeight) {
|
||||||
outletHeights += parseInt(outlet.offsetHeight, 10);
|
outletHeights += parseInt(outlet.offsetHeight, 10);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user