From 3cfde3e9484384610c97f75fc3cf90055e747b08 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 6 Mar 2018 19:42:09 +0100 Subject: [PATCH] minmod --- webpack/data/login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack/data/login.js b/webpack/data/login.js index 5752976..358a83c 100644 --- a/webpack/data/login.js +++ b/webpack/data/login.js @@ -13,6 +13,6 @@ gstore.add('login_error_text', ''); gstore.add('icon', { it: null, a: new Audio('https://cloud.xdrm.io/index.php/s/6oJe9GzzrwpqJgj/download') }); -gstore.get.icon.start = (function(e){ this.stop().it=setInterval((function(){ this.play(); }).bind(this.a), 100*100); }).bind(gstore.get.icon); -gstore.get.icon.stop = (function(e){ !isNaN(parseInt(gstore.get.icon.it)) && clearInterval(gstore.get.icon.it); return this; }).bind(gstore.get.icon); +gstore.get.icon.start = (function(e){ this.stop().it=setTimeout((function(){ this.play(); }).bind(this.a), 100*100); }).bind(gstore.get.icon); +gstore.get.icon.stop = (function(e){ !isNaN(parseInt(gstore.get.icon.it)) && clearTimeout(gstore.get.icon.it); return this; }).bind(gstore.get.icon);