]> Slayer Assistant Repositories - slayer.unlishema.org/.git/commitdiff
Fixed the request to have discord tag correctly.
authorunlishema <unlishema@jtryba.com>
Sat, 20 Sep 2025 18:26:57 +0000 (14:26 -0400)
committerunlishema <unlishema@jtryba.com>
Sat, 20 Sep 2025 18:26:57 +0000 (14:26 -0400)
dist/dev.html
src/dev.html

index b0041be12d5bddf1595af64d893d32ac0888f352..0b9f61f1b71568c6d5d4e1d34df754e2ece2f20a 100644 (file)
 
                 const response = await fetch(url, {
                     headers: {
-                        'X-Discord-User': 'unlishema#5238',      // Optional metadata header
-                        'X-Website': window.location.origin,     // Optional site header
-                        'X-Environment': 'production'           // Optional environment header
+                        'User-Agent': `${defaultUA} unlishema#5238`, // Append Discord tag
                     }
                 });
 
index b0041be12d5bddf1595af64d893d32ac0888f352..0b9f61f1b71568c6d5d4e1d34df754e2ece2f20a 100644 (file)
 
                 const response = await fetch(url, {
                     headers: {
-                        'X-Discord-User': 'unlishema#5238',      // Optional metadata header
-                        'X-Website': window.location.origin,     // Optional site header
-                        'X-Environment': 'production'           // Optional environment header
+                        'User-Agent': `${defaultUA} unlishema#5238`, // Append Discord tag
                     }
                 });