Skip to content

Commit

Permalink
fix: viewportIsMin in safari
Browse files Browse the repository at this point in the history
There was a missing closing paren in the `matchMedia` call.
  • Loading branch information
simonhaenisch committed May 29, 2020
1 parent 0ae8768 commit f3b33fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ionic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export const showConfirmationAlert = async (question?: string, options?: AlertOp
* @see https://ionicframework.com/docs/layout/grid#default-breakpoints
*/
export const viewportIsMin = (size: keyof typeof breakpoints) =>
matchMedia(`(min-width: ${breakpoints[size]}px`).matches;
matchMedia(`(min-width: ${breakpoints[size]}px)`).matches;

const breakpoints = {
xs: 375,
Expand Down

0 comments on commit f3b33fa

Please sign in to comment.