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

Can't copy to clipboard by button #69

Closed Semigradsky closed 3 years ago

Semigradsky commented 3 years ago

JsonDiscovery extension from Google store: v1.11.0 Google Chrome: Version 90.0.4430.93 (Official Build) (64-bit)

http://country.io/names.json

Error in console when click to 'Copy to clipboard' button:

init.js:186 TypeError: Cannot read property 'writeText' of undefined
    at p (init.js:186)
    at onClick (init.js:186)
    at HTMLButtonElement.<anonymous> (init.js:89)

As I see navigator.clipboard is undefined.

This can help: https://stackoverflow.com/a/51823007

exdis commented 3 years ago

Thank you for the report! Fix will be available in the coming days.

exdis commented 3 years ago

Thank you for your patience! Fix has been released and soon will be available in Google Web Store (already available in Mozilla Addons). Or you can grab new version from releases section.