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

Brightspace / react-valence-ui-fileviewer / 7111280825

06 Dec 2023 07:04AM UTC coverage: 56.35% (-32.8%) from 89.198%
7111280825

push

github

web-flow
Merge pull request #114 from Brightspace/venkata/node-sass-update-2

adding npm i in release.yml

604 of 1444 branches covered (0.0%)

1624 of 2882 relevant lines covered (56.35%)

11.45 hits per line

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

58.41
/src/plugins/pdf/alternate/isCrossDomain.js
1
'use strict';
2

3
var urlParse = require('url-parse');
12!
4

5
function isCrossDomain(url) {
2✔
6
        if (typeof url !== 'string') {
7
                return false;
8
        }
14✔
9

6✔
10
        var currentUrl = urlParse(getHref()),
11
                otherUrl = urlParse(url);
12

8✔
13
        return currentUrl.protocol !== otherUrl.protocol
8✔
14
                || currentUrl.hostname !== otherUrl.hostname
15
                || currentUrl.port !== otherUrl.port;
8✔
16
}
17

18
function getHref() {
19
        return window.location.href;
×
20
}
21

22
module.exports = isCrossDomain;
2✔
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

© 2025 Coveralls, Inc