From 7ca402147df6064c389912ef8136235a9eb2ebc4 Mon Sep 17 00:00:00 2001
From: Kelvin Tan <kelvin.tyb@gmail.com>
Date: Wed, 25 Jul 2018 23:37:04 +0800
Subject: add phishing html page, and redirect to bundled page in-window

---
 app/scripts/contentscript.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'app/scripts/contentscript.js')

diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js
index 7b7114c35..b7496f318 100644
--- a/app/scripts/contentscript.js
+++ b/app/scripts/contentscript.js
@@ -197,6 +197,7 @@ function blacklistedDomainCheck () {
  * Redirects the current page to a phishing information page
  */
 function redirectToPhishingWarning () {
-  console.log('MetaMask - redirecting to phishing warning')
-  window.location.href = 'https://metamask.io/phishing.html'
+  console.log('MetaMask - routing to Phishing Warning component')
+  let extensionURL = extension.runtime.getURL('phishing.html')
+  window.location.href = extensionURL
 }
-- 
cgit