peek icon indicating copy to clipboard operation
peek copied to clipboard

fix: peek button not showing on newer UI

Open thenbe opened this issue 2 years ago • 0 comments

The button was not consistently showing in github lately (depending on the version of the UI you're getting). I kept the original selectors, but added new ones as a fallback to maintain backwards compatibility. Some related issues still remain (#13), but this is a start.

I had to explicitly install webextension-polyfill, otherwise esbuild fails to build.

Finally, I also added debug logs. They're not necessary for this PR, but will be useful for anyone debugging this in the future.

Tested on firefox 120.0.1 and chrome 120.0.6099.109

thenbe avatar Dec 22 '23 17:12 thenbe