Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <script src="../../../resources/get-host-info.js?pipe=sub"></script> | |
| 3 <script src="../../resources/test-helpers.js"></script> | |
| 4 <script> | |
| 5 window.addEventListener('message', event => { | |
| 6 const port = event.ports[0]; | |
| 7 const url = get_host_info()['HTTP_ORIGIN'] + base_path(); | |
|
falken
2016/06/02 08:36:31
do you need the get_host_info stuff? can it just b
yhirano
2016/06/02 10:10:11
Done.
| |
| 8 fetch(url, {method: 'POST', body: 'hello'}) | |
| 9 .then(() => port.postMessage({results: 'finish'})) | |
| 10 .catch(e => port.postMessage({results: 'failure:' + e})); | |
| 11 }); | |
| 12 </script> | |
| OLD | NEW |