(target: EventTarget | null)
| 89 | // extension's own surface, global shortcuts should bail out so we don't |
| 90 | // steal native browser bindings (Linear-style scoping). |
| 91 | export const isInExtensionIframe = (target: EventTarget | null): boolean => { |
| 92 | if (!isExtension || typeof window === 'undefined') { |
| 93 | return false; |
| 94 | } |
| 95 | const node = target instanceof HTMLElement ? target : null; |
| 96 | if (!node) { |
| 97 | return false; |
| 98 | } |
| 99 | return node.tagName === 'IFRAME'; |
| 100 | }; |
| 101 | |
| 102 | const appleDeviceMatch = /(Mac|iPhone|iPod|iPad)/i; |
| 103 |
no outgoing calls
no test coverage detected