MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / isMailApplicationFrame

Function isMailApplicationFrame

content/icloud-mail.js:6–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4console.log(ICLOUD_MAIL_PREFIX, 'Content script loaded on', location.href, 'frame:', isTopFrame ? 'top' : 'child');
5
6function isMailApplicationFrame() {
7 if (/\/applications\/mail2\//.test(location.pathname)) {
8 return true;
9 }
10 return Boolean(document.querySelector('.content-container, .mail-message-defaults, .thread-participants'));
11}
12
13if (isTopFrame) {
14 console.log(ICLOUD_MAIL_PREFIX, 'Top frame detected; waiting for mail iframe.');

Callers 1

icloud-mail.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected