Description
Describe the bug
These are the configuration options I use. These options all work fine, unless the game on the page is embedded within an iframe.
<script type="text/javascript" src="/ruffle/ruffle.js"></script>
<script type="text/javascript">
window.RufflePlayer.config = {
autoplay: "on",
frameRate: currentGame.frameRate || null,
showSwfDownload: true,
contextMenu: "off"
};
</script>
Normally, these config options work when a game is not embedded within an iframe. If it is embedded within an iframe, right clicking on the ruffle canvas will still cause the contextMenu to pop up. Checking the value of window.RufflePlayer.config in the console also reflects that the value was properly set.
The above scripts are found within the <head> on the parent page. Is there an issue with whether the config is set in the parent vs child page? Does it have anything to do with the time delay for the ruffle instance to be created? Any suggestions for remedying?
Affected platform
Self-hosted version
Operating system
Windows 11
Browser
Microsoft Edge Version 131.0.2903.112 (Official build) (64-bit)
Additional information
No response