Fixing tests

This commit is contained in:
David Négrier 2020-06-25 11:56:11 +02:00
parent bfec2317c9
commit 63e2e176d3
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
const DEBUG_MODE: boolean = process.env.DEBUG_MODE == "true";
const API_URL = (window !== undefined ? window.location.protocol : 'http://') + '//' + (process.env.API_URL || "api.workadventure.localhost");
const API_URL = (typeof(window) !== 'undefined' ? window.location.protocol : 'http:') + '//' + (process.env.API_URL || "api.workadventure.localhost");
const RESOLUTION = 3;
const ZOOM_LEVEL = 1/*3/4*/;
const POSITION_DELAY = 200; // Wait 200ms between sending position events