mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
await uriHandler
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user