frappe_docker/frappe-bench/node_modules/mocha-nightwatch/lib/browser/tty.js
2017-07-31 15:51:51 +05:30

13 lines
292 B
JavaScript

'use strict';
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];
};