From 48ca5dbfba1a9a57b248546fa7fecefa79e98cd1 Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Tue, 2 Aug 2022 19:38:07 +1000 Subject: [PATCH] fix: add eth.link notification --- langs/en.json | 5 +++++ pages/index.vue | 29 ++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/langs/en.json b/langs/en.json index 3a8f444..16d9c65 100644 --- a/langs/en.json +++ b/langs/en.json @@ -456,5 +456,10 @@ "trustBanner": { "trustLess": "You are using a public IPFS gateway. Tornado Cash dApp can not use all security features of your browser. Check out {link} for alternatives", "link": "landing page" + }, + "ethLinkBanner": { + "notification": "Due to the {issue} with eth.link domain, we highly recommend avoiding using this gateway. Consider {alternative} gateways.", + "issue": "issue", + "alternative": "alternative" } } diff --git a/pages/index.vue b/pages/index.vue index d6fe9b9..2064f80 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -49,6 +49,32 @@ + + + + + + + +
@@ -81,7 +107,8 @@ export default { data() { return { activeTab: 0, - isActive: false + isActive: false, + isEthLink: window.location.host === 'tornadocash.eth.link' } }, computed: {