From f87bc35e86928979f45af94e2888bd4d104bd8b2 Mon Sep 17 00:00:00 2001
From: Samson Danziger <samson@samsondanziger.com>
Date: Thu, 2 May 2019 01:04:20 +0100
Subject: [PATCH] Add functions to toggle sidebar

---
 src/utils.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/utils.js b/src/utils.js
index 1e336b2..15a9982 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -17,6 +17,14 @@ module.exports = {
 
   getContent: () => {
     return $('#content');
+  },
+
+  openSidebar: () => {
+    sidebar.open('home');
+  },
+
+  closeSidebar: () => {
+    sidebar.close();
   }
 }
 
-- 
GitLab