We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13a7301 commit 4e1dac1Copy full SHA for 4e1dac1
src/components/login-modal.jsx
@@ -42,7 +42,7 @@ class Login extends Component {
42
let tld = hostname.split('.').slice(-2).join('.');
43
if (tld == 'github.io') return null;
44
if (tld == 'netlify.com') return null;
45
- if (tld == 'localhost') return null;
+ if (tld == 'localhost' || hostname.match(/^127|^0/)) return null;
46
return 'https://' + hostname + '/api/v3';
47
48
})();
0 commit comments