diff --git a/koki/koeki.js b/koki/koeki.js index 78e78f8..a032bbd 100644 --- a/koki/koeki.js +++ b/koki/koeki.js @@ -135,9 +135,11 @@ let cafe = localStorage.getItem('cafe'); if (cafe == 0) { alert("スタンプゲット!!"); - point+=10; - target = document.getElementById("output"); - target.innerHTML = point; + window.onload = fanction onLoad(){ + point+=10; + target = document.getElementById("output"); + target.innerHTML = point; + } } stampgetcafe(); complete();