mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
15 lines
440 B
HTML
15 lines
440 B
HTML
<!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>
|