|
|
@ -186,12 +186,7 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto']) |
|
|
|
networkerPromise; |
|
|
|
networkerPromise; |
|
|
|
|
|
|
|
|
|
|
|
var cachedNetworker; |
|
|
|
var cachedNetworker; |
|
|
|
var stack = (new Error()).stack; |
|
|
|
var stack = (new Error()).stack || 'empty stack'; |
|
|
|
if (!stack) { |
|
|
|
|
|
|
|
try {window.unexistingFunction();} catch (e) { |
|
|
|
|
|
|
|
stack = e.stack || ''; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var performRequest = function (networker) { |
|
|
|
var performRequest = function (networker) { |
|
|
|
return (cachedNetworker = networker).wrapApiCall(method, params, options).then( |
|
|
|
return (cachedNetworker = networker).wrapApiCall(method, params, options).then( |
|
|
|
function (result) { |
|
|
|
function (result) { |
|
|
|