blob: 840d6699ee520930412795a0679ac79aae934d0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
exports.isatty = function isatty() {
return true;
};
exports.getWindowSize = function getWindowSize() {
if ('innerHeight' in global) {
return [global.innerHeight, global.innerWidth];
}
// In a Web Worker, the DOM Window is not available.
return [640, 480];
};
|