PageSourceSearch

https://static.fivestar.ie/js/workers/search-v2.js

js fivestar.ie collected 2026-10-04 19:35:30 UTC 1,334 bytes, 52 lines download raw bytes

1/* eslint-disable semi */
2/* global fetch */
3
4// eslint-disable-next-line no-unused-vars
5function loadFavsModal (data) {
6  fetch('/accounts/api/loadFavsModal.php?' + new URLSearchParams(data), {
7    method: 'get',
8    headers: {
9      'Accept': 'text/html',
10      'Content-Type': 'application/json'
11    }
12  }).then(response => {
13    return Promise.all([response.ok, response.text()]);
14  }).then(([ok, text]) => {
15    this.postMessage({
16      method: 'loadFavsModal',
17      success: ok,
18      text: text
19    });
20  });
21}
22
23// eslint-disable-next-line no-unused-vars
24function loadSharesModal (data) {
25  fetch('/accounts/api/loadSharesModal.php?' + new URLSearchParams(data), {
26    method: 'get',
27    headers: {
28      'Accept': 'text/html',
29      'Content-Type': 'application/json'
30    }
31  }).then(response => {
32    return Promise.all([response.ok, response.text()]);
33  }).then(([ok, text]) => {
34    this.postMessage({
35      method: 'loadSharesModal',
36      success: ok,
37      text: text
38    });
39  });
40}
41
42this.onmessage = e => {
43  if (e.data && e.data.hasOwnProperty('request')) {
44    if (typeof this[e.data.request] === 'function') {
45      if (e.data.hasOwnProperty('data')) {
46        this[e.data.request](e.data.data);
47      } else {
48        this[e.data.request]()
49      }
50    }
51  }
52}

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.