walnuthq / cairovm.codes

Source code for cairovm.codes — a web app to compile Cairo programs into Sierra and CASM with step-through execution capabilities.
https://cairovm.codes
MIT License
29 stars 24 forks source link

chore: Improve permalinks - Issue #167 #168

Closed melnikga closed 1 month ago

melnikga commented 1 month ago

167

The problem was solely related to the telegram application on macbooks downloaded from the App store. The decision took a lot more effort than I expected. In the end, I figured out what the problem was, in this case, telegram very selectively allows you to insert links with base64 encoding, so standard methods like btoa() and encodeURIComponent() will not work here. The LZString library came to the rescue with its compressToEncodedURIComponent method, the encoding of which allows you to correctly insert links both in telegram on windows and in telegram on macbooks.

I also added DebugMode to the links, there was no difficulty with that.