blob: 07a084257a8cfec3a1e6310433c6d5b0b7693f55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<script src="/common/get-host-info.sub.js"></script>
<script type="text/javascript">
var hostInfo = get_host_info();
var makeLink = function(id, url) {
var link = document.createElement('link');
link.rel = 'import'
link.id = id;
link.href = url;
document.documentElement.appendChild(link);
};
makeLink('same', hostInfo.HTTPS_ORIGIN + '/sample-dir/same.html');
makeLink('other', hostInfo.HTTPS_REMOTE_ORIGIN + '/sample-dir/other.html');
</script>
|