From 1e4a75bf1ffcd0d957fba9297532e82f52b62786 Mon Sep 17 00:00:00 2001 From: kleph Date: Mon, 30 Mar 2015 18:43:46 +0200 Subject: [PATCH] Remove bug that replaced all spaces and not domain name anymore --- index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 46c63de..b673141 100644 --- a/index.html +++ b/index.html @@ -8,8 +8,10 @@ window.onload = clear; function clear() { - str_hostname = punycode.toUnicode(location.host).replace(/\./g, " ") - document.body.innerHTML = str_hostname.replace(".saynul.eu", ", c'est nul !"); + str_hostname = punycode.toUnicode(location.host) + str_hostname = str_hostname.replace(".saynul.eu", ", c'est nul !"); + str_hostname = str_hostname.replace(/\./g, " "); + document.body.innerHTML = str_hostname; };