PageSourceSearch

https://www.717450.net/assets/js/yappli/sendRegisteredId.mjs

js 717450.net collected 2026-10-02 07:09:19 UTC 771 bytes, 31 lines download raw bytes

1import { maxRetries } from "./config.mjs";
2
3async function wrapSendRegisteredId(id) {
4  return await new Promise((resolve, reject) => {
5    window.Yappli.sendRegisteredId(id, (result, message) => {
6      if (!result) {
7        reject(new Error(message));
8      } else {
9        resolve(result);
10      }
11    });
12  });
13}
14
15export async function yappliSendRegisteredId(id, attempts = 1) {
16  if (!id) {
17    return;
18  }
19  try {
20    return await wrapSendRegisteredId(id);
21  } catch (err) {
22    console.error(
23      `Yappli.sendRegisteredId: reason=${err.message}, attempts=${attempts}`
24    );
25    if (attempts >= maxRetries) {
26      console.info(`Yappli.sendRegisteredId: gives up retrying`);
27      return;
28    }
29    return await yappliSendRegisteredId(id, attempts + 1);
30  }
31}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.