Allow a website opened by script to use iframe_api

This commit is contained in:
GRL 2021-06-28 15:55:30 +02:00
parent d7ff8e4be6
commit feab5da2ad
9 changed files with 126 additions and 8 deletions

View file

@ -0,0 +1,15 @@
<!doctype html>
<html lang="en">
<head>
<script src="http://play.workadventure.localhost/iframe_api.js"></script>
<script>
</script>
</head>
<body>
<p>Website opened by script.</p>
<script>
WA.sendChatMessage('The iframe opened by a script works !', 'Mr Robot');
</script>
</body>
</html>