diff options
author | Dan <danjm.com@gmail.com> | 2018-04-19 02:45:48 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-04-19 02:45:48 +0800 |
commit | 649d2f8b229a6a749c0129dd5ef6dcf5b870e6c9 (patch) | |
tree | bc1e935331aa3678d18c2ffbcc04e791a711c0aa /app/scripts/lib/environment-type.js | |
parent | e80bd230b9bb6ac9ff05d7095f74dd2fd7ebb3af (diff) | |
parent | 7e21fc2aa780ccb4ffb2f642156385db22c47a52 (diff) | |
download | tangerine-wallet-browser-649d2f8b229a6a749c0129dd5ef6dcf5b870e6c9.tar.gz tangerine-wallet-browser-649d2f8b229a6a749c0129dd5ef6dcf5b870e6c9.tar.zst tangerine-wallet-browser-649d2f8b229a6a749c0129dd5ef6dcf5b870e6c9.zip |
Merge branch 'master' into dm-docs-1
Diffstat (limited to 'app/scripts/lib/environment-type.js')
-rw-r--r-- | app/scripts/lib/environment-type.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/app/scripts/lib/environment-type.js b/app/scripts/lib/environment-type.js deleted file mode 100644 index f13a1574d..000000000 --- a/app/scripts/lib/environment-type.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Used to determine the window type through which the app is being viewed. - * - 'popup' refers to the extension opened through the browser app icon (in top right corner in chrome and firefox) - * - 'responsive' refers to the main browser window - * - 'notification' refers to the popup that appears in its own window when taking action outside of metamask - * - * @returns {string} A single word label that represents the type of window through which the app is being viewed - * - */ -module.exports = function environmentType () { - const url = window.location.href - if (url.match(/popup.html$/)) { - return 'popup' - } else if (url.match(/home.html$/)) { - return 'responsive' - } else { - return 'notification' - } -} |