Skip to content

Commit

Permalink
Track the DummyService that was created.
Browse files Browse the repository at this point in the history
Issue #130.

␄
  • Loading branch information
Mike Castle committed Oct 8, 2023
1 parent 3456344 commit 6826ba2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion linkedin-tool.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2075,6 +2075,8 @@
#postScroller = null;
#commentScroller = null;

#dummy

/** @type {Scroller~What} */
static #postsWhat = {
name: 'Feed posts',
Expand Down Expand Up @@ -2107,7 +2109,7 @@
/** Create a Feed instance. */
constructor() {
super();
this.addService(DummyService);
this.#dummy = this.addService(DummyService);
this.#postScroller = new Scroller(Feed.#postsWhat, Feed._postsHow);
this.#postScroller.activate();
this.#postScroller.dispatcher.on(
Expand Down

0 comments on commit 6826ba2

Please sign in to comment.