less-broken loading of things

This commit is contained in:
dragonwocky 2020-11-11 22:55:35 +11:00
parent 8567f2fa90
commit 967f8a61f9
Signed by: dragonwocky
GPG Key ID: C7A48B7846AA706D
3 changed files with 8 additions and 2 deletions

View File

@ -78,7 +78,8 @@ module.exports = (store, __exports) => {
async function enhance() { async function enhance() {
if ( if (
!document.querySelector('.notion-frame') || !document.querySelector('.notion-frame') ||
!document.querySelector('.notion-sidebar') !document.querySelector('.notion-sidebar') ||
!document.querySelector('.notion-topbar')
) )
return; return;
clearInterval(attempt_interval); clearInterval(attempt_interval);

View File

@ -39,6 +39,7 @@ body {
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
display: block;
overflow: hidden; overflow: hidden;
background: var(--theme--main); background: var(--theme--main);
color: var(--theme--text); color: var(--theme--text);
@ -60,7 +61,6 @@ code {
border-radius: 0.1em; border-radius: 0.1em;
padding: 0.2em 0.4em; padding: 0.2em 0.4em;
font: 0.85em var(--theme--font_code); font: 0.85em var(--theme--font_code);
/* color: var(--theme--code_inline-text); */
background: var(--theme--code_inline-background); background: var(--theme--code_inline-background);
} }

View File

@ -6,6 +6,11 @@
<title>notion-enhancer menu</title> <title>notion-enhancer menu</title>
<script src="./colorjoe/min.js"></script> <script src="./colorjoe/min.js"></script>
<link rel="stylesheet" href="./colorjoe/picker.css" /> <link rel="stylesheet" href="./colorjoe/picker.css" />
<style>
body {
display: none;
}
</style>
</head> </head>
<body class="notion-dark-theme"> <body class="notion-dark-theme">
<header id="titlebar"></header> <header id="titlebar"></header>