change origin
This commit is contained in:
parent
800b09d79b
commit
46aa18b4e1
3 changed files with 11 additions and 7 deletions
|
@ -7,6 +7,7 @@ const assets = [
|
|||
'assets/head.svg',
|
||||
'assets/map.svg'
|
||||
];
|
||||
const origin = 'https://ub.zenoverse.net/'
|
||||
|
||||
class Game extends GameBasic {
|
||||
constructor() {
|
||||
|
@ -84,7 +85,7 @@ class Game extends GameBasic {
|
|||
let { player } = this;
|
||||
|
||||
if (player.health <= 0) {
|
||||
this.ws = new WebSocket(window.location.href);
|
||||
this.ws = new WebSocket(origin);
|
||||
this.player = new Player(false, true);
|
||||
this.entities.push(this.player);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue