diff options
Diffstat (limited to 'static')
-rw-r--r-- | static/js/journal.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/js/journal.js b/static/js/journal.js index 50927c6..0848409 100644 --- a/static/js/journal.js +++ b/static/js/journal.js @@ -44,6 +44,10 @@ app = new Vue({ this.isDrawerOpen = !this.isDrawerOpen; document.getElementsByTagName('html')[0].style.overflow = this.isDrawerOpen ? 'hidden' : 'unset'; }, + closeDrawer() { + this.isDrawerOpen = false; + document.getElementsByTagName('html')[0].style.overflow = this.isDrawerOpen ? 'hidden' : 'unset'; + }, }, created() { window.addEventListener('scroll', this.handleScroll); |