OLD | NEW |
1 <link id="same" rel="import" href="http://127.0.0.1:8000/dummy-dir/same.html"> | 1 <script src="../../resources/get-host-info.js"></script> |
2 <link id="other" rel="import" href="http://localhost:8000/dummy-dir/other.html"> | 2 <script type="text/javascript"> |
| 3 var hostInfo = get_host_info(); |
| 4 var makeLink = function(id, url) { |
| 5 var link = document.createElement('link'); |
| 6 link.rel = 'import' |
| 7 link.id = id; |
| 8 link.href = url; |
| 9 document.documentElement.appendChild(link); |
| 10 }; |
| 11 makeLink('same', hostInfo.HTTP_ORIGIN + '/dummy-dir/same.html'); |
| 12 makeLink('other', hostInfo.HTTP_REMOTE_ORIGIN + '/dummy-dir/other.html'); |
| 13 </script> |
OLD | NEW |