diff --git a/dist/mixins/safe-area.js b/dist/mixins/safe-area.js index 62b50ad5..0b7084de 100644 --- a/dist/mixins/safe-area.js +++ b/dist/mixins/safe-area.js @@ -8,7 +8,7 @@ function getSafeArea() { wx.getSystemInfo({ success: ({ model, statusBarHeight }) => { const deviceType = model.replace(/\s/g, '-'); - const iphoneNew = /iphone-x|iPhone11|iPhone12/i.test(deviceType); + const iphoneNew = /iphone-x|iPhone11|iPhone12|iPhone13/i.test(deviceType); cache = { isIPhoneX: iphoneNew, statusBarHeight diff --git a/lib/mixins/safe-area.js b/lib/mixins/safe-area.js index b2a4f72d..1f1c9bc1 100644 --- a/lib/mixins/safe-area.js +++ b/lib/mixins/safe-area.js @@ -11,7 +11,7 @@ function getSafeArea() { success: function (_a) { var model = _a.model, statusBarHeight = _a.statusBarHeight; var deviceType = model.replace(/\s/g, '-'); - var iphoneNew = /iphone-x|iPhone11|iPhone12/i.test(deviceType); + var iphoneNew = /iphone-x|iPhone11|iPhone12|iPhone13/i.test(deviceType); cache = { isIPhoneX: iphoneNew, statusBarHeight: statusBarHeight