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

3.9 and 3.10 do not work on iOS Safari #15155

Open
MatthewPringle opened this issue Mar 2, 2016 · 4 comments
Open

3.9 and 3.10 do not work on iOS Safari #15155

MatthewPringle opened this issue Mar 2, 2016 · 4 comments
Assignees

Comments

@MatthewPringle
Copy link

3.9 and 3.10 do not work in iOS Safari.

You can see this bug in action by downloading the html5 version ( lite or full ) and viewing the HelloWorld.html page in Safari.

The issue is that Safari won't append styles to the body. This causes a crash and the app stops running.

line 878 of the uncompressed, full version of cocos2d-js-v3.10.js

878 document.body.appendChild(fontStyle);

Change to

878 document.head.appendChild(fontStyle);

@MatthewPringle MatthewPringle changed the title 3.9 and 3.10 do not work on iOS. 3.9 and 3.10 do not work on iOS Safari Mar 2, 2016
@slackmoehrle
Copy link
Contributor

@pandamicro can you take a look at this? I talked with Matthew yesterday on the forums and it seems like this needs attention.

@dyegos
Copy link

dyegos commented Mar 16, 2016

Not only on Safari in iOS. All mobile web browsers.

@Nanyx
Copy link

Nanyx commented Mar 23, 2016

Run into the same problem. We currently using 3.10

Do you know a quick way to fix it ? I don't think regression will work, we use cocos studio 3.10 for all the visual integration.

Thanks ;)

@MatthewPringle
Copy link
Author

line 878 of the uncompressed, full version of cocos2d-js-v3.10.js

878 document.body.appendChild(fontStyle);

Change to

878 document.head.appendChild(fontStyle);

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

5 participants