Fix woka list url
This commit is contained in:
@@ -43,7 +43,7 @@ export class CustomizeScene extends AbstractCharacterScene {
|
|||||||
preload() {
|
preload() {
|
||||||
const wokaMetadataKey = "woka-list";
|
const wokaMetadataKey = "woka-list";
|
||||||
this.cache.json.remove(wokaMetadataKey);
|
this.cache.json.remove(wokaMetadataKey);
|
||||||
this.load.json(wokaMetadataKey, `${PUSHER_URL}/${wokaMetadataKey}`);
|
this.load.json(wokaMetadataKey, `${PUSHER_URL}/woka/list`);
|
||||||
this.load.once(`filecomplete-json-${wokaMetadataKey}`, () => {
|
this.load.once(`filecomplete-json-${wokaMetadataKey}`, () => {
|
||||||
this.playerTextures.loadPlayerTexturesMetadata(this.cache.json.get(wokaMetadataKey));
|
this.playerTextures.loadPlayerTexturesMetadata(this.cache.json.get(wokaMetadataKey));
|
||||||
this.loadCustomSceneSelectCharacters()
|
this.loadCustomSceneSelectCharacters()
|
||||||
|
|||||||
@@ -43,13 +43,13 @@ export class SelectCharacterScene extends AbstractCharacterScene {
|
|||||||
}
|
}
|
||||||
|
|
||||||
preload() {
|
preload() {
|
||||||
const wokaMetadataKey = "woka/list";
|
const wokaMetadataKey = "woka-list";
|
||||||
this.cache.json.remove(wokaMetadataKey);
|
this.cache.json.remove(wokaMetadataKey);
|
||||||
|
|
||||||
// FIXME: window.location.href is wrong. We need the URL of the main room (so we need to apply any redirect before!)
|
// FIXME: window.location.href is wrong. We need the URL of the main room (so we need to apply any redirect before!)
|
||||||
this.load.json(
|
this.load.json(
|
||||||
wokaMetadataKey,
|
wokaMetadataKey,
|
||||||
`${PUSHER_URL}/${wokaMetadataKey}/` + encodeURIComponent(window.location.href),
|
`${PUSHER_URL}/woka/list/` + encodeURIComponent(window.location.href),
|
||||||
undefined,
|
undefined,
|
||||||
{
|
{
|
||||||
responseType: "text",
|
responseType: "text",
|
||||||
|
|||||||
Reference in New Issue
Block a user