From ff9da502cb0a26132921831c2ab34f0474210857 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Tue, 17 Feb 2015 12:19:09 +0100 Subject: [PATCH] surrounding InitDeviceScan in try/catch in case something wrong happens. This prevents the hook to die --- core/main/client/lib/mdetect.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/main/client/lib/mdetect.js b/core/main/client/lib/mdetect.js index 8fa1ad199..60421135e 100644 --- a/core/main/client/lib/mdetect.js +++ b/core/main/client/lib/mdetect.js @@ -703,4 +703,6 @@ function InitDeviceScan() isTierGenericMobile = DetectTierOtherPhones(); }; -InitDeviceScan() +try { + InitDeviceScan(); +}catch(e){}