Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pixi.js not detected in iFrames #1

Closed
csomakk opened this issue Nov 5, 2015 · 3 comments
Closed

Pixi.js not detected in iFrames #1

csomakk opened this issue Nov 5, 2015 · 3 comments

Comments

@csomakk
Copy link
Collaborator

csomakk commented Nov 5, 2015

Hi there! What do I need to do to make this work?

I have a Canvas
<canvas width="1472" height="1536" style="width: 736px; height: 768px;"></canvas>
and the pixi script embedded like this
<script type="text/javascript" src="lib/pixi.dev.js"></script>

@csomakk
Copy link
Collaborator Author

csomakk commented Nov 5, 2015

probably because the game is within an iFrame

@csomakk
Copy link
Collaborator Author

csomakk commented Nov 5, 2015

okay, setting PIXI = myiframe.contentWindow.PIXI fixes it

@csomakk
Copy link
Collaborator Author

csomakk commented Nov 5, 2015

can we edit the names? eveything is PIXI.DisplayObjectContainer, what is not that nice.

@csomakk csomakk changed the title Pixi.js not detected. Pixi.js not detected in iFrames Nov 5, 2015
@bfanger bfanger closed this as completed in d1ee54a Nov 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant