mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: fixes test as bodyClass is sometimes "foo bar" (#15248)
This commit is contained in:
parent
adb23636e6
commit
3052eb6ae6
@ -17,7 +17,7 @@ export default Component.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.bodyClass) {
|
if (this.bodyClass) {
|
||||||
document.body.classList.add(this.bodyClass);
|
document.body.classList.add(...this.bodyClass.split(" "));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.scrollTop === "false") {
|
if (this.scrollTop === "false") {
|
||||||
@ -44,7 +44,7 @@ export default Component.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.bodyClass) {
|
if (this.bodyClass) {
|
||||||
document.body.classList.remove(this.bodyClass);
|
document.body.classList.remove(...this.bodyClass.split(" "));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user