SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 50b712db6e5b89e1a45c88313c4e11f8672ffb1f
parent c2e79c8fa9fe20ebbeca5da0d227388141ffc5aa
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date:   Mon, 29 Mar 2021 02:42:28 +1100

Fix sleep before redirect

Diffstat:
Mstatic/server_connection.js | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/static/server_connection.js b/static/server_connection.js @@ -34,8 +34,7 @@ function initiate(payment_data) { // Redirect if paid if (msg.redirect != null) { - sleep(5); - window.location.replace(msg.redirect); + setTimeout(() => { window.location.replace(msg.redirect); }, 5000); } }