diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-07-01 12:20:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 12:20:40 +0800 |
commit | d4e400e5e5a7ba501f210b722f6ccf97be9e6c17 (patch) | |
tree | 85b9c12d88db37dd586a50c9ebfdebc5d980da1e /app/scripts | |
parent | 70cf24617bf6adabf5ba012ba1af261df6e79fb3 (diff) | |
parent | 0f16155abfbe3b45677503846aa04cb5c7ef47bf (diff) | |
download | tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.gz tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.bz2 tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.lz tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.xz tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.tar.zst tangerine-wallet-browser-d4e400e5e5a7ba501f210b722f6ccf97be9e6c17.zip |
Merge pull request #378 from MetaMask/UiDev
Ui dev
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/popup.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/scripts/popup.js b/app/scripts/popup.js index 5c5cf0455..2e5b98896 100644 --- a/app/scripts/popup.js +++ b/app/scripts/popup.js @@ -54,12 +54,14 @@ function setupControllerConnection (stream, cb) { } function getCurrentDomain (cb) { + const unknown = '<unknown>' + if (!chrome.tabs) return cb(null, unknown) chrome.tabs.query({active: true, currentWindow: true}, function (results) { var activeTab = results[0] var currentUrl = activeTab && activeTab.url var currentDomain = url.parse(currentUrl).host if (!currentUrl) { - return cb(null, '<unknown>') + return cb(null, unknown) } cb(null, currentDomain) }) @@ -78,7 +80,7 @@ function setupApp (err, opts) { alert(err.stack) throw err } - + clearNotifications() var container = document.getElementById('app-content') |