From 84764c5dedbcd1a24d8d4be89052371b9a12266d Mon Sep 17 00:00:00 2001 From: ChiaNing <42071583+LinYunMo@users.noreply.github.com> Date: Thu, 16 May 2019 18:14:20 +0800 Subject: [PATCH] Bug Fixed: minimal-ui undefined (#4436) --- cocos/core/platform/CCView.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/core/platform/CCView.ts b/cocos/core/platform/CCView.ts index 59a1144367..a131c3db84 100644 --- a/cocos/core/platform/CCView.ts +++ b/cocos/core/platform/CCView.ts @@ -37,11 +37,11 @@ class BrowserGetter { public html: HTMLHtmlElement | undefined; - public meta!: { - 'width': 'device-width'; + public meta = { + width: 'device-width', }; - public adaptationType: any; + public adaptationType: any = cc.sys.browserType; public init () { if (!CC_WECHATGAME && !CC_QQPLAY) {