Improve and cleanup isMobile

This commit is contained in:
djmaze 2021-02-15 16:05:38 +01:00
parent 10f9ce39d9
commit b1c7bd2c50
15 changed files with 27 additions and 43 deletions

View file

@ -8,7 +8,7 @@ export const $htmlCL = doc.documentElement.classList;
export const Settings = rl.settings;
/** @media screen and (max-width: 600px) { */
export const isMobile = () => $htmlCL.contains('rl-mobile'); // || rl.settings.app('mobile')
export const isMobile = () => $htmlCL.contains('rl-mobile');
export const dropdownVisibility = ko.observable(false).extend({ rateLimit: 0 });