decord/source/__polyfill/12xxx/module_12994.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

34 lines
746 B
JavaScript

// Module ID: 12994
// Function ID: 12995
// Dependencies: []
// Exports: isSentryRequestUrl
// Module 12994
export const isSentryRequestUrl = function isSentryRequestUrl(arr, getDsn) {
let dsn = getDsn;
if (getDsn) {
dsn = getDsn.getDsn();
}
let tunnel = getDsn;
if (getDsn) {
tunnel = getDsn.getOptions().tunnel;
}
let tmp2 = dsn && arr.includes(dsn.host);
if (!tmp2) {
let flag = false;
if (tunnel) {
let substr = arr;
if ("/" === arr[arr.length - 1]) {
substr = arr.slice(0, -1);
}
let substr1 = tunnel;
if ("/" === tunnel[tunnel.length - 1]) {
substr1 = tunnel.slice(0, -1);
}
flag = substr === substr1;
}
tmp2 = flag;
}
return tmp2;
};