Allow a website opened by script to use iframe_api
This commit is contained in:
parent
d7ff8e4be6
commit
feab5da2ad
9 changed files with 126 additions and 8 deletions
15
maps/tests/Metadata/cowebsiteAllowApi.html
Normal file
15
maps/tests/Metadata/cowebsiteAllowApi.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue