()
| 35 | } |
| 36 | |
| 37 | function getSessionProperties(): EventProperties { |
| 38 | return { |
| 39 | studio_version: typeof __STUDIO_VERSION__ !== "undefined" ? __STUDIO_VERSION__ : "dev", |
| 40 | screen_width: window.screen?.width, |
| 41 | screen_height: window.screen?.height, |
| 42 | viewport_width: window.innerWidth, |
| 43 | viewport_height: window.innerHeight, |
| 44 | user_agent: navigator.userAgent, |
| 45 | url_hash: location.hash.replace(/#project\//, ""), |
| 46 | }; |
| 47 | } |
| 48 | |
| 49 | declare const __STUDIO_VERSION__: string; |
| 50 |