I just took over the company's app, the app needs to load html to play a cocos2d-html5 game. Loading the index.html and the url prefix of index.html is file:///
, but the code contains a judgment, if the url prefix contains negame://
then some methods can response, so can I change the prefix into negame://
Asked
Active
Viewed 74 times
0

serenesat
- 4,611
- 10
- 37
- 53

Pis.Y.Chen
- 13
- 7
-
Are you using UIWebView? – Islam May 18 '15 at 06:48
-
I'm glad that you resolved it. I guess you could post your solution and mark that as the accepted answer so others in the future will benefit. – Islam May 18 '15 at 11:03
1 Answers
0
the question is not a question, because i mistook that the prefix url of index.html need to change into 'negame://',actually, There are a lot of buttons in the game, clicking on the buttons will pass the url, some of the urls contain 'negame://'...

Pis.Y.Chen
- 13
- 7