Replies: 2 comments 3 replies
-
The message So, in you example, you have to replace The ID of the extension is indeed arbitrary but never changes. This is a requirement in order to store data (i.e. the settings) permanently. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you very much! Is there a way to change the default filename? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to call the SingleFile extension from a custom button that performs several actions that are typical in my workflow. My code in the background.js file is as follows:
When I execute that code, I get the message "Received response from SingleFile extension: undefined", but nothing seems to happen. Any idea of what could be failing here?
It seems that the message is correctly sent to the SingleFile extension, as if I change the targetExtensionID then I get an error "Error sending message: Error: Could not establish connection. Receiving end does not exist.". This also begs another question: the target extension ID seems to be quite arbitrary (it is not even set in the manifest.json file of SingleFile, as far as I understand), so the code above seems to be quite fragile (it depends on an ID that has no meaning for me and could change). Any idea about whether this can be managed in a better way is welcome.
Any tip would be great!
Beta Was this translation helpful? Give feedback.
All reactions