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) {