diff --git a/index.js b/index.js index acc971f..975513c 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ function getBoundingClientRect (node) { node = range; } - if ('function' === typeof node.getBoundingClientRect) { + if (node.getBoundingClientRect) { rect = node.getBoundingClientRect(); if (node.startContainer && rect.left === 0 && rect.top === 0) {