diff --git a/main.js b/main.js
index d49d9bd..465538c 100644
--- a/main.js
+++ b/main.js
@@ -478,6 +478,7 @@ class TrayPlugin extends obsidian.Plugin {
     cleanup();
   }
 
+  getCurrentWindow = getCurrentWindow
   getWindows = getWindows;
   showWindows = showWindows;
   hideWindows = hideWindows;