Skip to content

Commit 546dd9c

Browse files
authored
Catch getLayoutMap error (#3518)
This might be causing issues with the PWA showing a blank screen with MacOS.
1 parent 58622cc commit 546dd9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.ts

+3
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ export class BrowserKeyboardMapperFactoryBase {
406406
// }
407407

408408
// return null;
409+
}).catch(() => {
410+
// NOTE@coder: It looks like the intention was to catch this error but
411+
// a try/catch won't do it when using promises without `await`.
409412
});
410413
} catch {
411414
// getLayoutMap can throw if invoked from a nested browsing context

0 commit comments

Comments
 (0)