fix race condition breaking quickmarks

This commit is contained in:
Colin Caine 2017-11-21 03:30:16 +00:00
parent c828ffd484
commit a0fc55fd9f

View file

@ -741,9 +741,10 @@ export async function quickmark(key: string) {
}
let address = (await activeTab()).url
bind("gn" + key, "tabopen", address)
bind("go" + key, "open", address)
bind("gw" + key, "winopen", address)
// Have to await these or they race!
await bind("gn" + key, "tabopen", address)
await bind("go" + key, "open", address)
await bind("gw" + key, "winopen", address)
}
// }}}