Skip to content

Commit

Permalink
v1.1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
mustakshif committed Jan 18, 2024
1 parent f868c95 commit 5cb6abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const doms = {
// backlinkListItems: layouts.querySelectorAll('.sy__backlink .b3-list-item')
}

const isMacOS = navigator.userAgentData.platform === "macOS";
const isLinux = navigator.userAgentData.platform === "Linux";
const isMacOS = navigator.platform.indexOf("Mac") === 0 || navigator.userAgentData.platform === "macOS";
const isLinux = navigator.platform.indexOf("Linux") === 0 || navigator.userAgentData.platform === "Linux";
const isMobile = document.getElementById('sidebar') && document.getElementById('editor');
const isInBrowser = doms.toolbar && doms.toolbar.classList.contains('toolbar--browser');

Expand Down

0 comments on commit 5cb6abf

Please sign in to comment.