Skip to content

Commit

Permalink
[Fix] Disable message event listener on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-kun committed Dec 25, 2024
1 parent 7019dc0 commit 6e11ce9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,11 @@ <h2><a id='title' style='display:none' href='/'>Nikita Korzhitskii</a></h2>
window.addEventListener('message', (event) => {
if (event.origin === window.location.origin && event.data.dataOrderException) {
document.body.innerHTML += document.getElementsByTagName('noscript')[0].textContent;
window.removeEventListener('message', this);
throw event.data.dataOrderException;
}
});

while (true){
if (search) {
Array.from(links.querySelectorAll('summary')).map((s) => {
Expand Down

0 comments on commit 6e11ce9

Please sign in to comment.