You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.
Hi,
A fancy enhancement will to include a detection of the device and put it into M.Environment.
We could have: isDeviceMobile or isDeviceTablet.
Here the following code:
M.Environment = M.Object.extend(
{
isDeviceMobile: function() {
if(window.matchMedia("(orientation:landscape)").matches){
return window.matchMedia("(max-height:640px)").matches;
}
);
Cheers
The text was updated successfully, but these errors were encountered: