From 967f8a61f986a2fb53a70bfef0ccf1a7e9274d25 Mon Sep 17 00:00:00 2001
From: dragonwocky <thedragonring.bod@gmail.com>
Date: Wed, 11 Nov 2020 22:55:35 +1100
Subject: [PATCH] less-broken loading of things

---
 mods/core/client.js | 3 ++-
 mods/core/menu.css  | 2 +-
 mods/core/menu.html | 5 +++++
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/mods/core/client.js b/mods/core/client.js
index 9fa7c81..a7460e9 100644
--- a/mods/core/client.js
+++ b/mods/core/client.js
@@ -78,7 +78,8 @@ module.exports = (store, __exports) => {
   async function enhance() {
     if (
       !document.querySelector('.notion-frame') ||
-      !document.querySelector('.notion-sidebar')
+      !document.querySelector('.notion-sidebar') ||
+      !document.querySelector('.notion-topbar')
     )
       return;
     clearInterval(attempt_interval);
diff --git a/mods/core/menu.css b/mods/core/menu.css
index 525ed51..e39d6f4 100644
--- a/mods/core/menu.css
+++ b/mods/core/menu.css
@@ -39,6 +39,7 @@ body {
   height: 100%;
   margin: 0;
   padding: 0;
+  display: block;
   overflow: hidden;
   background: var(--theme--main);
   color: var(--theme--text);
@@ -60,7 +61,6 @@ code {
   border-radius: 0.1em;
   padding: 0.2em 0.4em;
   font: 0.85em var(--theme--font_code);
-  /* color: var(--theme--code_inline-text); */
   background: var(--theme--code_inline-background);
 }
 
diff --git a/mods/core/menu.html b/mods/core/menu.html
index c86210d..8369d30 100644
--- a/mods/core/menu.html
+++ b/mods/core/menu.html
@@ -6,6 +6,11 @@
     <title>notion-enhancer menu</title>
     <script src="./colorjoe/min.js"></script>
     <link rel="stylesheet" href="./colorjoe/picker.css" />
+    <style>
+      body {
+        display: none;
+      }
+    </style>
   </head>
   <body class="notion-dark-theme">
     <header id="titlebar"></header>