PageSourceSearch

https://app.goeva.ai/sw-push-scope.js

js goeva.ai collected 2026-10-05 12:02:33 UTC 657 bytes, 17 lines download raw bytes

1/* eslint-disable no-restricted-globals */
2/**
3 * Fail-closed workspace policy shared by the service worker and its unit test.
4 */
5(function attachPushScopePolicy(root) {
6  function shouldDisplay(payload, workspaceClaim) {
7    if (!payload || typeof payload !== "object") return false;
8    if (typeof workspaceClaim !== "string" || !workspaceClaim.trim()) return false;
9    const payloadWorkspace = payload.workspace_id;
10    return (
11      typeof payloadWorkspace === "string" &&
12      payloadWorkspace.trim() === workspaceClaim.trim()
13    );
14  }
15
16  root.evaPushScope = Object.freeze({ shouldDisplay });
17})(typeof self !== "undefined" ? self : globalThis);

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.