Posts Tagged chrome
Recently I tried to pack my game http://qfel13.github.com/xit/ into chrome app. To enable offline playing in my game. When I did this there was problem with redirection to level editor.
Chrome communicated that there is redirection loop.
I checked my code of redirection and there was something like this:
window.href = '/editor/#load';
The problem was that href didn’t point to actual page so ‘/editor/index.html’ but only to folder for which webserver automatically served index.html file.
The same problem was with redirection from editor to game
window.href = '../#load';
Needed to be changed to:
window.href = '../index.html#load';
Everything started to work well after this changes. You can find game app here.