Catch getLayoutMap error (#3518)

This might be causing issues with the PWA showing a blank screen with
MacOS.
This commit is contained in:
Asher 2021-06-01 16:04:26 -05:00 committed by GitHub
parent 58622ccc34
commit 546dd9c278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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