未验证 提交 546dd9c2 编写于 作者: A Asher 提交者: GitHub

Catch getLayoutMap error (#3518)

This might be causing issues with the PWA showing a blank screen with
MacOS.
上级 58622ccc
......@@ -406,6 +406,9 @@ export class BrowserKeyboardMapperFactoryBase {
// }
// return null;
}).catch(() => {
// NOTE@coder: It looks like the intention was to catch this error but
// a try/catch won't do it when using promises without `await`.
});
} catch {
// getLayoutMap can throw if invoked from a nested browsing context
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册