• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

excaliburjs / Excalibur / 14804036802

02 May 2025 09:58PM UTC coverage: 5.927% (-83.4%) from 89.28%
14804036802

Pull #3404

github

web-flow
Merge 5c103d7f8 into 0f2ccaeb2
Pull Request #3404: feat: added Graph module to Math

234 of 8383 branches covered (2.79%)

229 of 246 new or added lines in 1 file covered. (93.09%)

13145 existing lines in 208 files now uncovered.

934 of 15759 relevant lines covered (5.93%)

4.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/engine/Util/IFrame.ts
1
/**
2
 * Checks if excalibur is in a x-origin iframe
3
 */
4
export function isCrossOriginIframe() {
UNCOV
5
  try {
×
6
    // Try and listen to events on top window frame if within an iframe.
7
    //
8
    // See https://github.com/excaliburjs/Excalibur/issues/1294
9
    //
10
    // Attempt to add an event listener, which triggers a DOMException on
11
    // cross-origin iframes
UNCOV
12
    const noop = () => {
×
13
      return;
×
14
    };
UNCOV
15
    window.top.addEventListener('blur', noop);
×
UNCOV
16
    window.top.removeEventListener('blur', noop);
×
17
  } catch {
18
    return true;
×
19
  }
UNCOV
20
  return false;
×
21
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc