diff --git a/js/key_worker.js b/js/key_worker.js index a603372e4..e031a0c53 100644 --- a/js/key_worker.js +++ b/js/key_worker.js @@ -38761,13 +38761,6 @@ window.textsecure.utils = function() { return self; }(); -window.textsecure.throwHumanError = function(error, type, humanError) { - var e = new Error(error); - if (type !== undefined) - e.name = type; - e.humanError = humanError; - throw e; -} var handleAttachment = function(attachment) { function getAttachment() { @@ -39122,7 +39115,15 @@ window.textsecure.api = function () { options.error(null, xhr.status); }; xhr.send( options.data || null ); - }; + } + + function throwHumanError (error, type, humanError) { + var e = new Error(error); + if (type !== undefined) + e.name = type; + e.humanError = humanError; + throw e; + } var doAjax = function (param) { if (param.urlParameters === undefined) { diff --git a/js/libtextsecure.js b/js/libtextsecure.js index d6b69c6d0..ded9ce91f 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -38760,13 +38760,6 @@ window.textsecure.utils = function() { return self; }(); -window.textsecure.throwHumanError = function(error, type, humanError) { - var e = new Error(error); - if (type !== undefined) - e.name = type; - e.humanError = humanError; - throw e; -} var handleAttachment = function(attachment) { function getAttachment() { @@ -39121,7 +39114,15 @@ window.textsecure.api = function () { options.error(null, xhr.status); }; xhr.send( options.data || null ); - }; + } + + function throwHumanError (error, type, humanError) { + var e = new Error(error); + if (type !== undefined) + e.name = type; + e.humanError = humanError; + throw e; + } var doAjax = function (param) { if (param.urlParameters === undefined) { diff --git a/libtextsecure/api.js b/libtextsecure/api.js index 18ff212f9..9584b785b 100644 --- a/libtextsecure/api.js +++ b/libtextsecure/api.js @@ -87,7 +87,15 @@ window.textsecure.api = function () { options.error(null, xhr.status); }; xhr.send( options.data || null ); - }; + } + + function throwHumanError (error, type, humanError) { + var e = new Error(error); + if (type !== undefined) + e.name = type; + e.humanError = humanError; + throw e; + } var doAjax = function (param) { if (param.urlParameters === undefined) { diff --git a/libtextsecure/helpers.js b/libtextsecure/helpers.js index f112fc93a..35e886140 100644 --- a/libtextsecure/helpers.js +++ b/libtextsecure/helpers.js @@ -123,13 +123,6 @@ window.textsecure.utils = function() { return self; }(); -window.textsecure.throwHumanError = function(error, type, humanError) { - var e = new Error(error); - if (type !== undefined) - e.name = type; - e.humanError = humanError; - throw e; -} var handleAttachment = function(attachment) { function getAttachment() {