diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-21 18:09:05 +0300 |
|---|---|---|
| committer | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-21 18:09:05 +0300 |
| commit | 6f4eefe60181a9913155ec8c1cc644bf78b23ea3 (patch) | |
| tree | 78f71984c421ba6a27b23a0d421825da1f878352 /web/assets | |
| parent | 510c35f450e13fc833ab2c9a59e4822c0c0f658c (diff) | |
chore: make class to get the device form factor
Diffstat (limited to 'web/assets')
| -rw-r--r-- | web/assets/js/util/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/assets/js/util/index.js b/web/assets/js/util/index.js index 85d53352..625af8b9 100644 --- a/web/assets/js/util/index.js +++ b/web/assets/js/util/index.js @@ -780,4 +780,10 @@ class LanguageManager { return languageFilter.length > 0; } +} + +class DeviceUtils { + static isMobile() { + return window.innerWidth <= 768; + } }
\ No newline at end of file |
