cookies_sharedworker.js");
        worker.port.start();
        worker.port.postMessage(secret);
      } catch (e) {
        throw new Error("Unsupported");
      }
    }

read: () =>
      new Promise((resolve, reject) => {
        let worker = new SharedWorker("supercookies_sharedworker.js");
        worker.port.start();
        worker.port.postMessage("request");
        worker.port.onmessage = (e) => resolve(e.data);
        setTimeout(() => reject("no SharedWorker message received"), 100);
      })

re