From 835116159520aeae84ead3454e765bf389ec1972 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Tue, 7 Jun 2016 22:01:45 +0300 Subject: [PATCH] Fixed stack for bad IE --- app/js/lib/mtproto_wrapper.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/js/lib/mtproto_wrapper.js b/app/js/lib/mtproto_wrapper.js index 444152d8..61fc80a1 100644 --- a/app/js/lib/mtproto_wrapper.js +++ b/app/js/lib/mtproto_wrapper.js @@ -186,12 +186,7 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto']) networkerPromise; var cachedNetworker; - var stack = (new Error()).stack; - if (!stack) { - try {window.unexistingFunction();} catch (e) { - stack = e.stack || ''; - } - } + var stack = (new Error()).stack || 'empty stack'; var performRequest = function (networker) { return (cachedNetworker = networker).wrapApiCall(method, params, options).then( function (result) {