fix ci
This commit is contained in:
parent
c441792d3f
commit
d1d7b2cf8f
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
export async function parseBindingName (binding: string) {
|
||||
if (!binding) return ''
|
||||
|
||||
const { keyboard } = navigator
|
||||
const layoutMap = (typeof keyboard === 'undefined' ? undefined : await keyboard?.getLayoutMap?.()) ?? new Map<string, string>()
|
||||
const { keyboard } = (typeof navigator === 'undefined' ? undefined : navigator) ?? {}
|
||||
const layoutMap = await keyboard?.getLayoutMap?.() ?? new Map<string, string>()
|
||||
|
||||
const mapKey = (key: string) => layoutMap.get(key) || key
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue