diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-09-28 14:29:43 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-09-28 14:29:43 -0400 |
| commit | ebe04f8fc791413131c37425998be5be4a2ef538 (patch) | |
| tree | a8f6e6a15c9e3125f20e9081c59755911a8253bb /www/js/NewsCtrl.js | |
| parent | d8fea09d65e5207ef8c4fafcddd5fc74a7f7be00 (diff) | |
#709 dont escape urls in caller, incorporate cordova http ssl and basic auth checks
Diffstat (limited to 'www/js/NewsCtrl.js')
| -rw-r--r-- | www/js/NewsCtrl.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/www/js/NewsCtrl.js b/www/js/NewsCtrl.js index f18722d9..55712753 100644 --- a/www/js/NewsCtrl.js +++ b/www/js/NewsCtrl.js @@ -87,16 +87,10 @@ angular.module('zmApp.controllers').controller('zmApp.NewsCtrl', ['$scope', '$ro $scope.newsItems = []; - $http.get(zm.blogUrl/*, { - transformResponse: function (d, h) { - var trunc = "])}while(1);</x>"; - d = d.substr(trunc.length); - return d; - } - }*/) + $http.get(zm.blogUrl, { + responseType:'text' + }) .then(function (datastr) { - - datastr = datastr.data; var trunc = "])}while(1);</x>"; datastr= datastr.substr(trunc.length); |
