Add an error handler to Raven loader.

This should allow app to continue to work if loading Raven
times out.
This commit is contained in:
Shane Kilkelly 2017-07-18 14:41:44 +01:00
parent 1fb036811a
commit a4992891d0

View file

@ -72,6 +72,8 @@
// whitelistUrls: ['example.com/scripts/'] // whitelistUrls: ['example.com/scripts/']
}).install(); }).install();
} }
}, function(err) {
console.log(">> error loading raven", err);
}) })
- if (user && typeof(user) != "undefined" && typeof (user.email) != "undefined") - if (user && typeof(user) != "undefined" && typeof (user.email) != "undefined")
script(type="text/javascript"). script(type="text/javascript").