Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH authored and kelson42 committed Jun 21, 2024
1 parent 0ecd722 commit a542436
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Support/injection.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ let observer = new IntersectionObserver(function(entries) {
// register scroll view to handle heading on top of the page
window.onscroll = function() {
if (document.documentElement.scrollTop <= 0) {
const headingVisible = window.webkit.messageHandlers.headingVisible
if(headingVisible !== undefined && headingVisible.postMessage !== undefined) {
headingVisible.postMessage({id: headings[0].id})
}
const headingVisible = window.webkit.messageHandlers.headingVisible
if(headingVisible !== undefined && headingVisible.postMessage !== undefined) {
headingVisible.postMessage({id: headings[0].id})
}
}
}

Expand Down

0 comments on commit a542436

Please sign in to comment.