diff --git a/lib/index.html b/lib/index.html index 22cbd656..ebceaad7 100644 --- a/lib/index.html +++ b/lib/index.html @@ -44,7 +44,38 @@
- + @@ -55,7 +86,9 @@ resultArea = document.getElementById("result"), isjs = document.getElementById("is_js"), source; - sourceArea.value = source = localStorage.source; + + if(!localStorage.source) localStorage.source = source = sourceArea.value; + else sourceArea.value = source = localStorage.source; isjs.checked = localStorage.isjs == "t"; function compile(){