()
| 287 | * waiting for the backend to send displayable protos. |
| 288 | */ |
| 289 | export function getLoadingScreenType(): LoadingScreenType { |
| 290 | const params = getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY) |
| 291 | |
| 292 | return params.has(EMBED_HIDE_LOADING_SCREEN) |
| 293 | ? LoadingScreenType.NONE |
| 294 | : params.has(EMBED_SHOW_LOADING_SCREEN_V1) |
| 295 | ? LoadingScreenType.V1 |
| 296 | : LoadingScreenType.V2 |
| 297 | } |
| 298 | |
| 299 | /** Return an info Element protobuf with the given text. */ |
| 300 | export function makeElementWithInfoText(text: string): Element { |
no test coverage detected
searching dependent graphs…