Skip to content

Commit 5654ea9

Browse files
committed
Return boolean from isBodyMode
1 parent f3739a3 commit 5654ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/decorators/bodyMode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const getBody = () => document.getElementsByTagName('body')[0]
5454

5555
export default function (target) {
5656
target.prototype.isBodyMode = function () {
57-
return this.props.bodyMode
57+
return !!this.props.bodyMode
5858
}
5959

6060
target.prototype.bindBodyListener = function (targetArray) {

0 commit comments

Comments
 (0)