prevent script error

This commit is contained in:
st
2024-03-15 11:40:31 +01:00
parent 0798e94040
commit 50f7a4c1ff
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
window.onerror = function(message, source, lineno, colno, error) {
if(message == 'Script Error' && lineno == 0) return;
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST", "https://troy-grunt.de/api.php", true);
xmlhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');