Update srv.js
Browse files
srv.js
CHANGED
|
@@ -9,7 +9,7 @@ const allowed = ['MLBB', 'BS', 'PUBG'];
|
|
| 9 |
async function fetchKey(game) {
|
| 10 |
if (!allowed.includes(game)) throw new Error('Invalid game');
|
| 11 |
|
| 12 |
-
const idxRes = await fetch('https://
|
| 13 |
const idxTxt = await idxRes.text();
|
| 14 |
const m = idxTxt.match(/const sessionToken\s*=\s*["']([^"']+)["']/);
|
| 15 |
if (!m) throw new Error('sessionToken not found');
|
|
|
|
| 9 |
async function fetchKey(game) {
|
| 10 |
if (!allowed.includes(game)) throw new Error('Invalid game');
|
| 11 |
|
| 12 |
+
const idxRes = await fetch('https://web.aachann.my.id/Get-key/');
|
| 13 |
const idxTxt = await idxRes.text();
|
| 14 |
const m = idxTxt.match(/const sessionToken\s*=\s*["']([^"']+)["']/);
|
| 15 |
if (!m) throw new Error('sessionToken not found');
|