()
| 341 | return { |
| 342 | name: 'Feedback' as const, |
| 343 | setupOnce() { |
| 344 | if (!isBrowser() || !_options.autoInject) { |
| 345 | return; |
| 346 | } |
| 347 | |
| 348 | if (DOCUMENT.readyState === 'loading') { |
| 349 | DOCUMENT.addEventListener('DOMContentLoaded', () => _createActor().appendToDom()); |
| 350 | } else { |
| 351 | _createActor().appendToDom(); |
| 352 | } |
| 353 | }, |
| 354 | |
| 355 | /** |
| 356 | * Adds click listener to the element to open a feedback dialog |
nothing calls this directly
no test coverage detected