(source: &str)
| 2008 | } |
| 2009 | |
| 2010 | fn source_label(source: &str) -> &'static str { |
| 2011 | match source { |
| 2012 | "react-native" => "React Native", |
| 2013 | SOURCE_REACT_NATIVE_METRO => "React Native Metro", |
| 2014 | SOURCE_CHROME_INSPECTOR => "Chrome Inspector", |
| 2015 | "nativescript" => "NativeScript", |
| 2016 | "swiftui" => "SwiftUI", |
| 2017 | "in-app-inspector" => "UIKit", |
| 2018 | _ => "App", |
| 2019 | } |
| 2020 | } |
| 2021 | |
| 2022 | fn websocket_url(http_origin: &str, path: &str) -> String { |
| 2023 | if http_origin.starts_with("https://") { |