decord/source/__polyfill/12xxx/module_12995.js
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

34 lines
746 B
JavaScript

// Module ID: 12995
// Function ID: 12996
// Dependencies: []
// Exports: isSentryRequestUrl
// Module 12995
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;
};