getViewportSize
Get viewport size of the current browser window.
Usage
1 | client.getViewportSize(property).then(callback); |
Parameters
Param | Type | Details |
---|---|---|
property | String | if “width” or “height” is set it returns only that property |
Example
1 | client |