Hello, I am trying to create an offscreen document for copying text to clipboard. I am trying to follow some of the examples I found in this issue: https://github.com/PlasmoHQ/plasmo/issues/527.
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist.
Which I'm guessing means it can't find the message handler.
Am I supposed to put the message handler in a different place or create the offscreen document in a different file? I would really appreciate if someone could help me fix this.