mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:50:26 -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) {
|
||||
document.body.classList.add(this.bodyClass);
|
||||
document.body.classList.add(...this.bodyClass.split(" "));
|
||||
}
|
||||
|
||||
if (this.scrollTop === "false") {
|
||||
@ -44,7 +44,7 @@ export default Component.extend({
|
||||
}
|
||||
|
||||
if (this.bodyClass) {
|
||||
document.body.classList.remove(this.bodyClass);
|
||||
document.body.classList.remove(...this.bodyClass.split(" "));
|
||||
}
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user