oxheadalpha / TZComet

Contract Metadata Viewer on Tezos
https://www.oxheadalpha.com/TZComet/
MIT License
25 stars 3 forks source link

TZComet doesn't support text/html as MIME type #85

Closed damian0815 closed 2 years ago

damian0815 commented 2 years ago

Using the token explorer to browse KT1WmAHNFxV1JzoGxQYEkE1aFKvNNNSj73sX, for example token id 10000000003 fails to display the html content.

eg https://tzcomet.io/#/token/KT1WmAHNFxV1JzoGxQYEkE1aFKvNNNSj73sX/10000000003%3Fexplorer-input%3DKT1WmAHNFxV1JzoGxQYEkE1aFKvNNNSj73sX - expanding "show logs" it seems that the URL https://mainnet.live.endlessways.net/10000000003 has been correctly discovered, but it does not render, presumably because the MIME type is text/html.

(What would be expected/ideal in this case is an iframe that renders the content!)

damian0815 commented 2 years ago

ooh, just saw #84 - a small tweak to that and it would fix this too

damian0815 commented 2 years ago

fwiw this problem also effects tokens like Geoff Stearns's h3p https://h3p.deconcept.com (eg https://tzcomet.io/#/token/KT1Fxz4V3LaUcVFpvF8pAAx8G3Z4H7p7hhDg/1%3Fexplorer-input%3DKT1Fxz4V3LaUcVFpvF8pAAx8G3Z4H7p7hhDg)

smondet commented 2 years ago

screenshot-20220225-155937

This is fixed now! (#84)