Move getScreenSize from beef.browser to beef.hardware

This commit is contained in:
Brendan Coles
2019-02-09 11:23:18 +00:00
parent 5bce57854b
commit 3108653c69
3 changed files with 13 additions and 13 deletions

View File

@@ -37,6 +37,17 @@ beef.hardware = {
return arch;
},
/**
* Returns zombie screen size and color depth.
*/
getScreenSize: function () {
return {
width: window.screen.width,
height: window.screen.height,
colordepth: window.screen.colorDepth
}
},
/*
* @return: {Boolean} true or false.
**/