Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

dont make ipify API call when running locally

Jason Kent6a5b699127c1
diff --git a/web/js/app.js b/web/js/app.js
index 7616ffd67..6c6432179 100644
--- a/web/js/app.js
+++ b/web/js/app.js
@@ -153,7 +153,9 @@ class App extends React.Component {
}
if (config.features.googleTagManager) {
googleTagManager.init(config.features.googleTagManager.id); // Insert google tag manager
- getIpAddress();
+ if (!/localhost/.test(window.location.href)) {
+ getIpAddress();
+ }
}
// Console notifications