40 lines
1.5 KiB
React
40 lines
1.5 KiB
React
/* Metro module 7437; source: unknown; dependencies: [] */
|
|
function _fun60036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7615:6, offset: 0x016f9807, size: 61 bytes, params: 8, frame: 16
|
|
const removeTrailingSlash_60037 = function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (value[value.length - 1] !== '/') {
|
|
r0 = value;
|
|
} else {
|
|
value = value.slice(0, -1);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.isSentryRequestUrl = isSentryRequestUrl_60038;
|
|
}
|
|
|
|
function isSentryRequestUrl_60038(a0, a1) { // fn#60038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7615:174, offset: 0x016f9844, size: 105 bytes, params: 3, frame: 14
|
|
var removeTrailingSlash_60037Binding;
|
|
let value = a1;
|
|
let r1 = value && value.getDsn();
|
|
const r5 = value && value.getOptions().tunnel;
|
|
let r0 = r1 ? a0.includes(r1.host) : !!r1;
|
|
if (!r0) {
|
|
value = false;
|
|
if (r5) {
|
|
removeTrailingSlash_60037Binding = removeTrailingSlash_60037;
|
|
value = removeTrailingSlash_60037Binding(a0);
|
|
value = value === removeTrailingSlash_60037Binding(r5);
|
|
r1 = value;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|