mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-17 16:21:55 +03:00
11 lines
345 B
HTML
11 lines
345 B
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 = '/grid.html';
|
||
|
iframe.src = url.toString();
|
||
|
document.body.appendChild(iframe);
|
||
|
}, false);
|
||
|
</script>
|