Skip to content

Commit

Permalink
#53 Add Support for Iphone X
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Feb 19, 2019
1 parent 70d6aba commit 7bd95f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@
}, false);
});

if (ons.platform.isIPhoneX()) {
document.documentElement.setAttribute('onsflag-iphonex-portrait', '');
}

</script>
<ons-navigator id="appNavigator" swipeable swipe-target-width="80px">
<ons-page>
Expand Down

0 comments on commit 7bd95f7

Please sign in to comment.