Browser enters infinite loop when displaying a page saved as a snapshot

After capturing a snapshot of this page: https://tomsaunders.co.nz/zotero-guide/ , both Firefox and Chrome enter an infinite loop when displaying it.

The culprit is the following Javascript code:

< script type="text/javascript">if (document.location.protocol != "https:") {document.location = document.URL.replace(/^http:/i, "https:");}< /script>
Sign In or Register to comment.