discoveryjs / browser-extension-json-discovery

A browser extension (Chrome, Edge, Firefox) that changes the way you're viewing JSON
305 stars 11 forks source link

Copying json in firefox for specfic objects doesn't work correctly. #79

Closed KingsleyBawuah closed 2 years ago

KingsleyBawuah commented 2 years ago

When you copy a specific json object that is nested inside of another one (using the f button) nothing is copied to my clipboard.

When looking in the console this error is printed out:

TypeError: 'clipboard-write' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName.

I'm on OSX running Firefox Developer Edition.

Let me know if I can provide anymore details.

exdis commented 2 years ago

Hey, @KingsleyBawuah! Thanks for the report. Could you please share the URL where this error occurs?

gmsh commented 2 years ago

It happened here too. ( JsonDiscovery 1.13.1, Firefox 104 on macOS 12.5.1. ) I attached an example.json.

The copy to clipboard button works. However, the menu of the f button, i.e, copy path or copy as JSON doesn't work.

example.json.zip

exdis commented 2 years ago

@gmsh thanks for the report! We're working on the fix

exdis commented 2 years ago

Reopening because need to update Discovery.js

exdis commented 2 years ago

@KingsleyBawuah @gmsh problem fixed, you can grab fresh version from the stores 👌

gmsh commented 2 years ago

It works. Thank you so much for the prompt fix!