From be2d805bd1c306c72235fcd7f014ddbc98e758dc Mon Sep 17 00:00:00 2001 From: Emin Deniz Date: Mon, 23 Nov 2020 22:39:44 +0300 Subject: [PATCH] fix place of dark mode button on mobile fix https://github.com/stephenou/fruitionsite/issues/60 --- worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.js b/worker.js index e76b00e..ba7920f 100644 --- a/worker.js +++ b/worker.js @@ -269,7 +269,7 @@ class BodyRewriter { const observer = new MutationObserver(function() { if (redirected) return; const nav = document.querySelector('.notion-topbar'); - const mobileNav = document.querySelector('.notion-topbar-mobile'); + const mobileNav = document.querySelector('.notion-topbar-mobile>div.notranslate'); if (nav && nav.firstChild && nav.firstChild.firstChild || mobileNav && mobileNav.firstChild) { redirected = true;