Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <script> | 2 <script> |
| 3 var from_http = <?php | 3 var from_http = <?php |
| 4 echo json_encode($_COOKIE); | 4 echo json_encode($_COOKIE); |
| 5 ?>; | 5 ?>; |
| 6 | 6 |
| 7 window.opener.postMessage({ | 7 window.opener.postMessage({ |
| 8 'http': from_http, | 8 'http': from_http, |
| 9 'document': document.cookie | 9 'document': document.cookie |
| 10 }, "*"); | 10 }, "*"); |
| 11 | |
| 12 window.addEventListener("message", e => { | |
| 13 if (e.data == "reload") | |
| 14 window.location.reload(); | |
| 15 }); | |
| 16 </script> | 11 </script> |
| OLD | NEW |