Skip to content

Commit

Permalink
Fixed side pane detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
pierluigizagaria committed Sep 6, 2020
1 parent e7beadc commit fd550cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ var setCaret = function(target, position) {
var findPane = async function() {
let pane
let loop = setInterval(() => {
if (pane = $('#pane-side')[0]) {
$(pane).on('click', hook);
if (pane = document.querySelector('#pane-side')){
pane.addEventListener("click", hook)
clearInterval(loop);
}
}, 125);
Expand Down

0 comments on commit fd550cc

Please sign in to comment.