Skip to content

Commit 3a04d3b

Browse files
committed
fix(e2e): fix
1 parent 5491414 commit 3a04d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-common/src/breakpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const useBreakpoint = () => {
1313
const activeBreakpoint = hooks.ref('')
1414
const prefixes = ['2xl', 'xl', 'lg', 'md', 'sm']
1515
const createMatchMedia = (mediaQueryString) => {
16-
if (isServer) {
16+
if (isServer && typeof matchMedia === 'function') {
1717
return {
1818
matches: false,
1919
media: mediaQueryString,

0 commit comments

Comments
 (0)