mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed window callers
This commit is contained in:
parent
ba2e610e01
commit
224c27b6f4
6 changed files with 55 additions and 26 deletions
|
@ -1 +1,7 @@
|
|||
export const isTablet = () => window.innerWidth < 599;
|
||||
export const isTablet = () => {
|
||||
if (typeof window === 'undefined') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return window.innerWidth < 599;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue