await uriHandler

This commit is contained in:
Tony Brix 2019-04-16 22:39:26 -05:00 committed by GitHub
parent 29e042a88b
commit 3df8e145d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ class URIHandlerRegistry {
})
}
handleURI (uri) {
async handleURI (uri) {
const parsed = url.parse(uri, true)
const {protocol, slashes, auth, port, host} = parsed
if (protocol !== 'atom:' || slashes !== true || auth || port) {
@ -101,7 +101,7 @@ class URIHandlerRegistry {
try {
if (registration) {
historyEntry.handled = true
registration(parsed, uri)
await registration(parsed, uri)
}
} finally {
this.history.unshift(historyEntry)