adds cors to test in dev environment
This commit is contained in:
@@ -7,7 +7,9 @@ const PLAYER_LIST = [
|
||||
];
|
||||
|
||||
const fetchPlayerList = function () {
|
||||
|
||||
fetch("http://localhost:8088/players")
|
||||
.then(r => r.json())
|
||||
.then(r => console.log(r));
|
||||
};
|
||||
|
||||
const fetchRequests = function () {
|
||||
@@ -25,6 +27,7 @@ export const AppStorage = {
|
||||
// Initiate the state
|
||||
initStorage (playerId) {
|
||||
if (this.debug) console.log('Initiate with player : ', playerId)
|
||||
fetchPlayerList();
|
||||
this.state.player_id = playerId;
|
||||
for (var idx in PLAYER_LIST) {
|
||||
var player = PLAYER_LIST[idx];
|
||||
|
||||
Reference in New Issue
Block a user