chore: Don't send analytics during devnet (#31)

This commit is contained in:
Collin Jackson 2024-11-07 11:05:40 -08:00 committed by GitHub
parent c41425c55c
commit f7fe621554
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,11 +7,11 @@ pub fn analytics_token(_ws_addr_string: &str) -> String {
#[cfg(not(debug_assertions))]
pub fn analytics_token(ws_addr_string: &str) -> String {
if ws_addr_string.starts_with("wss://dev.orchestrator.nexus.xyz:443/") {
return "504d4d443854f2cd10e2e385aca81aa4".into();
return "".into(); // TODO: Firebase Analytics tid
} else if ws_addr_string.starts_with("wss://staging.orchestrator.nexus.xyz:443/") {
return "30bcb58893992aabc5aec014e7b903d2".into();
return "".into(); // TODO: Firebase Analytics tid
} else if ws_addr_string.starts_with("wss://beta.orchestrator.nexus.xyz:443/") {
return "3c16d3853f4258414c9c9109bbbdef0e".into();
return "".into(); // TODO: Firebase Analytics tid
} else {
return "".into();
};