Skip to content

Commit

Permalink
fix place of dark mode button on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
emindeniz99 authored Nov 23, 2020
1 parent 391feb5 commit be2d805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit be2d805

Please sign in to comment.