Skip to content

Copy to clipboard isn't working in the browser devtools #19

@2color

Description

@2color

Bug

When clicking on the copy to clipboard button for multiaddrs, the multiaddr isn't copied and an error is logged

Image

Why?

One thing I don't understand is why the copy-to-clipboard event, which originates from the devtools panel, and sent using postMessage is handled in two places:

The service worker error is showing up, I suspect, because host_permissions is not defined in the manifest.json, causing chrome.scripting.executeScript() to fail when trying to inject into the active page.

Whereas the content-script handler is failing for a different reason:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions