js-algorithms/node_modules/mocha/lib/browser/tty.js
2015-07-24 11:14:18 +04:30

13 lines
267 B
JavaScript

exports.isatty = function(){
return true;
};
exports.getWindowSize = function(){
if ('innerHeight' in global) {
return [global.innerHeight, global.innerWidth];
} else {
// In a Web Worker, the DOM Window is not available.
return [640, 480];
}
};