From 3df8e145d575ebb13f04d457b800a8e0e3ca980a Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Tue, 16 Apr 2019 22:39:26 -0500 Subject: [PATCH] await uriHandler --- src/uri-handler-registry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uri-handler-registry.js b/src/uri-handler-registry.js index 297f916eb..2b36ce906 100644 --- a/src/uri-handler-registry.js +++ b/src/uri-handler-registry.js @@ -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)