piranha / twinspark-js

Declarative enhancement for HTML: simple, composable, lean.
https://twinspark.js.org/
MIT License
418 stars 20 forks source link

"View source" button in docs does not work after navigating back #16

Closed slaviqueue closed 1 year ago

slaviqueue commented 2 years ago

Steps to reproduce:

  1. Go to https://kasta-ua.github.io/twinspark-js/#history
  2. Click Let's change history!
  3. Click Let's change history 2!
  4. Navigate back
  5. Navigate back again
  6. Press any "View source" button
piranha commented 1 year ago

I finally understood wtf is going on, it's because all those "view examples/reset" buttons are custom JS and not using twinspark. 🤣 Maybe I should rewrite them. 🤔