Your playable is not allowed to use window.top
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 40.3k
- Forks
- 7.2k
- PR merge metrics
- No merged PRs in 30d
Description
Version
- Phaser Version: v3.87 (WebGL | Web Audio)
- Operating system: Widows
- Browser: Chrome
Description
When trying to submit inlined index.html of Playable Ad yo Unity Ads console I get this error:
Your playable is not allowed to use window.top
Example Test Code
Use playable template.
Additional Information
I commented out all mentions of window.top blocks in phaser-custom.js to fix the issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the playable template and the Phaser v3.87 build used for the Unity Ads submission. Search phaser-custom.js for the reported window.top references and compare the generated inline index.html; done means the playable is accepted without the forbidden-reference error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100