1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-09-02 09:33:25 +02:00

document.body.toggleClass is not a function

toggleClass is not a function and throws an exception
This commit is contained in:
Jeronimo López
2017-03-18 20:16:51 +01:00
committed by GitHub
parent 81d6b27fe0
commit 5edd685cc5

View File

@@ -38,7 +38,7 @@ export default class Grid {
*/
onKeyPress_(event) {
if (event.which === Keys.ENTER) {
document.body.toggleClass('baseline');
document.body.classList.toggle('baseline');
}
}
}