diff --git a/app/scripts/ui.js b/app/scripts/ui.js index 5e8cc8e66..3b7b6ea3c 100644 --- a/app/scripts/ui.js +++ b/app/scripts/ui.js @@ -86,6 +86,11 @@ async function queryCurrentActiveTab (windowType) { const { title, url } = activeTab const { origin, protocol } = url ? new URL(url) : {} + if (!origin || origin === 'null') { + resolve({}) + return + } + resolve({ title, origin, protocol, url }) }) })