DEV: fixes test as bodyClass is sometimes "foo bar" (#15248)

This commit is contained in:
Joffrey JAFFEUX 2021-12-09 15:34:50 +01:00 committed by GitHub
parent adb23636e6
commit 3052eb6ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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(" "));
}
},
});