From d84c21d6805bd705e45d439898a9300c61333a72 Mon Sep 17 00:00:00 2001 From: zhongnan Date: Wed, 16 Dec 2020 15:15:06 +0800 Subject: [PATCH] build: compile 0.5.29 --- dist/mixins/safe-area.js | 2 +- lib/mixins/safe-area.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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