mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-26 07:13:35 +01:00
6 lines
227 B
JavaScript
Vendored
6 lines
227 B
JavaScript
Vendored
import getWindow from './isWindow';
|
|
import offset from './offset';
|
|
export default function height(node, client) {
|
|
var win = getWindow(node);
|
|
return win ? win.innerHeight : client ? node.clientHeight : offset(node).height;
|
|
} |