Remove bug that replaced all spaces and not domain name anymore

This commit is contained in:
kleph 2015-03-30 18:43:46 +02:00
parent b69a60a8ad
commit 1e4a75bf1f

View file

@ -8,8 +8,10 @@
window.onload = clear; window.onload = clear;
function clear() { function clear() {
str_hostname = punycode.toUnicode(location.host).replace(/\./g, " ") str_hostname = punycode.toUnicode(location.host)
document.body.innerHTML = str_hostname.replace(".saynul.eu", ", c'est nul !"); str_hostname = str_hostname.replace(".saynul.eu", ", c'est nul !");
str_hostname = str_hostname.replace(/\./g, " ");
document.body.innerHTML = str_hostname;
}; };
</script> </script>