summaryrefslogtreecommitdiffstats
path: root/remote/test/puppeteer/test/assets/dynamic-oopif.html
blob: dbe93a9923a769a0cd5e0be3fd02e753c5ccecae (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<script>
window.addEventListener('DOMContentLoaded', () => {
  const iframe = document.createElement('iframe');
  const url = new URL(location.href);
  url.hostname = url.hostname === 'localhost' ? '127.0.0.1' : 'localhost';
  url.pathname = '/oopif.html';
  iframe.src = url.toString();
  document.body.appendChild(iframe);
}, false);
</script>