PageSourceSearch

https://whatpwacando.today/src/controllers/image-gallery.js

js whatpwacando.today collected 2026-10-01 13:14:02 UTC 650 bytes, 26 lines download raw bytes

1export const controller = async () => {
2  const config = {
3    handle: crypto.randomUUID(),
4    exposeOrigin: true,
5    permittedOrigins: ['*'],
6  };
7  navigator.mediaDevices.setCaptureHandleConfig(config);
8
9  const gallery = document.querySelector('image-gallery');
10  const broadcastChannel = new BroadcastChannel("capture-handle");
11
12  broadcastChannel.addEventListener('message', ({data}) => {
13    const {handle, command} = data;
14
15    if(handle === config.handle) {
16      switch(command) {
17        case 'previous':
18          gallery.previous();
19          break;
20        case 'next':
21          gallery.next();
22          break;
23      }
24    }
25  });
26}

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.