()
| 143 | } |
| 144 | |
| 145 | async function sendDisplaysTDataEvent() { |
| 146 | const displays = getActivityDisplays(); |
| 147 | if (displays.length === 0) { |
| 148 | return; |
| 149 | } |
| 150 | const props: TEventProps = {}; |
| 151 | props["display:count"] = displays.length; |
| 152 | props["display:height"] = displays[0].height; |
| 153 | props["display:width"] = displays[0].width; |
| 154 | props["display:dpr"] = displays[0].dpr; |
| 155 | props["display:all"] = displays; |
| 156 | try { |
| 157 | await RpcApi.RecordTEventCommand( |
| 158 | ElectronWshClient, |
| 159 | { |
| 160 | event: "app:display", |
| 161 | props, |
| 162 | }, |
| 163 | { noresponse: true } |
| 164 | ); |
| 165 | } catch (e) { |
| 166 | console.log("error sending display tdata event", e); |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | function logActiveState() { |
| 171 | fireAndForget(async () => { |
nothing calls this directly
no test coverage detected