blob: a57aacec7c6f32d9c321b99057032947c877e4b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script>
self.addEventListener('error', evt => {
self.parent.postMessage({ type: 'ErrorEvent', msg: evt.message }, '*');
});
const el = document.createElement('script');
const params = new URLSearchParams(self.location.search);
el.src = params.get('script');
el.addEventListener('load', evt => {
runScript();
});
document.body.appendChild(el);
</script>
</body>
</html>
|