Skip to content

Commit

Permalink
Install event listeners for the new info widget.
Browse files Browse the repository at this point in the history
Issue #130.

␄
  • Loading branch information
Mike Castle committed Oct 23, 2023
1 parent 8e6c4aa commit 9aa14a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions linkedin-tool.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4192,6 +4192,17 @@
document.getElementById(dismissId).addEventListener('click', () => {
this.#infoWidget.close();
});

widget.addEventListener('open', this.#onInfoOpen);
widget.addEventListener('close', this.#onInfoClose);
}

#onInfoOpen = () => {
this.logger.log('info opened');
}

#onInfoClose = () => {
this.logger.log('info closed');
}

/** Create CSS styles for stuff specific to LinkedIn Tool. */
Expand Down

0 comments on commit 9aa14a7

Please sign in to comment.