MaxLaumeister / PageCrypt

Client-side password-protection for HTML
https://pagecrypt.maxlaumeister.com/
MIT License
508 stars 101 forks source link

incompatible with VSCode liver server #30

Open lin-ycv opened 2 years ago

lin-ycv commented 2 years ago

When prevising the page with Live Server for Visual Studio Code, the page doesn't work, nothing happens when submit is pressed, not even an error message, but works fine when opened directly.

MaxLaumeister commented 2 years ago

I tried reproducing this, and I can confirm that PageCrypt-encrypted pages do break under Live Server. According to the js console, there is an error at the line of the HTML where Live Server injects the js code responsible for live reloading.

I'm not planning to pursue this one further, but I am happy to help support anyone who might want to dig in further or craft a PR.