Skip to content

Commit

Permalink
Merge pull request #20 from noriyotcp/debugging-on-mobile
Browse files Browse the repository at this point in the history
Add debugging code to detect mobile OS
  • Loading branch information
noriyotcp authored Oct 4, 2024
2 parents 988b786 + d947ebf commit c94937c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/js/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ document.addEventListener("DOMContentLoaded", function () {
setupSearchHotkeys(searchIcon);
}

// For debugging purpose
if (isMobile()) {
const siteSubTitle = document.querySelector(".site-subtitle");
siteSubTitle.innerHTML = "Noriyo Akita's Today I Learned (on Mobile)"
}

// Register focus hotkeys
setupFocusHotkeys();

Expand Down

0 comments on commit c94937c

Please sign in to comment.