Source: Utils/Functions/System/virtual desktop/script.js

const screenManager = Bean("screenManager");

/**
 * Obtains the width of user's screen
 *
 * @returns {number} width of user's screen in pixels
 */
function getScreenWidth() {
    return screenManager.getScreenWidth();
}
module.getScreenWidth = getScreenWidth;

/**
 * Obtains the height of user's screen
 *
 * @returns {number} height of user's screen in pixels
 */
function getScreenHeight() {
    return screenManager.getScreenHeight();
}
module.getScreenHeight = getScreenHeight;