Skip to content

Commit

Permalink
aditya comments
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Nov 4, 2019
1 parent 372381e commit cf5de1e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/assets/v2/js/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,13 +704,11 @@ var currentNetwork = function(network) {
'<a href="https://metamask.io/?utm_source=gitcoin.co&utm_medium=referral" target="_blank" rel="noopener noreferrer">Metamask</a>';
$('#current-network').text(gettext('Metamask Locked'));
$('#navbar-network-banner').html(info);
} else {
if (window.ethereum._metamask) {
} else if (window.ethereum._metamask) {
info = gettext('Metamask not connected. ') +
'<button id="metamask_connect" onclick="approve_metamask()">Click here to connect to metamask</button>';
$('#current-network').text(gettext('Metamask Not Connected'));
$('#navbar-network-banner').html(info);
}
}
} else {
info = gettext('Connect to Mainnet via Metamask');
Expand Down Expand Up @@ -747,13 +745,11 @@ var currentNetwork = function(network) {
'<a href="https://metamask.io/?utm_source=gitcoin.co&utm_medium=referral" target="_blank" rel="noopener noreferrer">Metamask</a>';
$('#current-network').text(gettext('Metamask Locked'));
$('#navbar-network-banner').html(info);
} else {
if (window.ethereum._metamask) {
} else if (window.ethereum._metamask) {
info = gettext('Metamask not connected. ') +
'<button id="metamask_connect" onclick="approve_metamask()">Click here to connect to metamask</button>';
$('#current-network').text(gettext('Metamask Not Connected'));
$('#navbar-network-banner').html(info);
}
}
} else {
info = gettext('Connect to Rinkeby / Custom RPC via Metamask');
Expand Down

0 comments on commit cf5de1e

Please sign in to comment.