| <!doctype html> | |
| <html> | |
| <meta charset="utf-8"> | |
| <script> | |
| const SEARCH_PARAMS = new URL(location.href).searchParams; | |
| const TOKEN = SEARCH_PARAMS.get('token') || ''; | |
| const METHOD = SEARCH_PARAMS.get('method') || 'GET'; | |
| const url = `/fetch/api/resources/stash-put.py?key=${TOKEN}&value=on`; | |
| addEventListener('load', () => { | |
| let p = fetch(url, {keepalive: true, method: METHOD}); | |
| window.parent.postMessage(TOKEN, '*'); | |
| }); | |
| </script> | |
| </html> |