Remove some debug code
This commit is contained in:
parent
71209a962a
commit
79095b7dde
|
@ -111,7 +111,6 @@ const buildOptionsTable = (settings) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const updateSetting = (event) => {
|
const updateSetting = (event) => {
|
||||||
console.log(event.target.value);
|
|
||||||
const options = JSON.parse(localStorage.getItem('playerSettings'));
|
const options = JSON.parse(localStorage.getItem('playerSettings'));
|
||||||
options[event.target.getAttribute('data-key')] = isNaN(event.target.value) ?
|
options[event.target.getAttribute('data-key')] = isNaN(event.target.value) ?
|
||||||
event.target.value : parseInt(event.target.value, 10);
|
event.target.value : parseInt(event.target.value, 10);
|
||||||
|
@ -142,5 +141,7 @@ const generateGame = (raceMode = false) => {
|
||||||
presetData: { player: localStorage.getItem('playerSettings') },
|
presetData: { player: localStorage.getItem('playerSettings') },
|
||||||
playerCount: 1,
|
playerCount: 1,
|
||||||
race: raceMode ? '1' : '0',
|
race: raceMode ? '1' : '0',
|
||||||
|
}).then((response) => {
|
||||||
|
window.location.href = response.data.url;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue