mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-20 23:05:09 +00:00
13 lines
292 B
JavaScript
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];
|
|
};
|