mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
Add debug method upper in code
This commit is contained in:
parent
3fa63f78fe
commit
6f1ae41fb4
1 changed files with 7 additions and 8 deletions
|
|
@ -18,6 +18,12 @@ var gameModes = {
|
|||
850: 'Co-op vs. AI (Intermediate)'
|
||||
};
|
||||
|
||||
/* Debug button to reset localstorage */
|
||||
document.querySelector('.debug').addEventListener('click', () => {
|
||||
console.log('CLEAR LOCALSTORAGE');
|
||||
localStorage.clear();
|
||||
});
|
||||
|
||||
var req = new XMLHttpRequest();
|
||||
var url = '/api';
|
||||
var params = 'playerName=Kalane';
|
||||
|
|
@ -298,10 +304,3 @@ function displayContent(stringData) {
|
|||
matchesList.appendChild(li);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/* Debug button to reset localstorage */
|
||||
document.querySelector('.debug').addEventListener('click', () => {
|
||||
console.log('CLEAR LOCALSTORAGE');
|
||||
localStorage.clear();
|
||||
});
|
||||
Loading…
Reference in a new issue