NoTrack: Fix another issue related to proxies

This commit is contained in:
Nuckyz 2024-08-14 19:41:31 -03:00
parent 18c5ca216c
commit f9776ce1ae
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -107,7 +107,8 @@ export default definePlugin({
srcRequest.send();
// Final condition to see if this is the Sentry WebpackInstance
if (!srcRequest.responseText.includes("window.DiscordSentry=")) {
// This is matching window.DiscordSentry=, but without `window` to avoid issues on some proxies
if (!srcRequest.responseText.includes(".DiscordSentry=")) {
return;
}