From 635b501c0fd493317fb0d5f2ee85c32f31a0511b Mon Sep 17 00:00:00 2001 From: Wouter Sioen Date: Tue, 12 Jan 2016 16:56:13 +0100 Subject: [PATCH] Use better supported anonymous function syntax. Fixes #132 --- lib/assets/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/assets/client.js b/lib/assets/client.js index 102edbd7..4eb3678b 100644 --- a/lib/assets/client.js +++ b/lib/assets/client.js @@ -43,7 +43,7 @@ function invite(channel, coc, email, fn){ .end(function(res){ if (res.body.redirectUrl) { var err = new Error(res.body.msg || 'Server error'); - window.setTimeout(() => { + window.setTimeout(function() { location.href = res.body.redirectUrl; }, 1500); }