dodd869 commited on
Commit
b483441
·
verified ·
1 Parent(s): f6094e4

Update srv.js

Browse files
Files changed (1) hide show
  1. srv.js +1 -1
srv.js CHANGED
@@ -20,7 +20,7 @@ async function fetchKey(game) {
20
  const genTxt = await genRes.text();
21
  const k = genTxt.match(/id="gameKey"[^>]*>([^<]+)<\/p>/);
22
  //if (!k) throw new Error('key not found in response');
23
- return k[1]?.trim() || `https://web.aachann.my.id/Get-key/genkey.php?data=${data}`;
24
  }
25
 
26
  app.get('/key', async (req, res) => {
 
20
  const genTxt = await genRes.text();
21
  const k = genTxt.match(/id="gameKey"[^>]*>([^<]+)<\/p>/);
22
  //if (!k) throw new Error('key not found in response');
23
+ return `https://web.aachann.my.id/Get-key/genkey.php?data=${data}`;
24
  }
25
 
26
  app.get('/key', async (req, res) => {