diff --git a/common/config.js b/common/config.js index 3cdd778..0038f7f 100644 --- a/common/config.js +++ b/common/config.js @@ -34,4 +34,9 @@ const messages = { export const translate = (key) => (messages[key] || '-'); +export function isMobileViewport() { + const width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; + return width < 1200; +} + const formatRelease = (release) => moment(release, 'YYYY-MM-DD').format('MMM YYYY');