feat: keybinds (WIP)

This commit is contained in:
David Ralph
2021-08-25 11:25:46 +01:00
parent d33a879281
commit 3ed2171a34
8 changed files with 131 additions and 5 deletions

View File

@@ -37,6 +37,12 @@ if (localStorage.getItem('stats') === 'true') {
};
}
if (localStorage.getItem('keybindsEnabled') === 'true') {
window.keybinds = JSON.parse(localStorage.getItem('keybinds') || '{}');
} else {
window.keybinds = {};
}
render(
<App/>,
document.getElementById('root')