Skip to content

Commit

Permalink
Fix JSON parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
olsh committed Oct 30, 2017
1 parent b3c8896 commit 515c26f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "Feedly Notifier",
"description": "__MSG_ExtensionDescription__",
"version": "2.15.9",
"version": "2.15.10",
"default_locale": "en",
"permissions": [
"storage",
Expand Down
4 changes: 3 additions & 1 deletion src/scripts/feedly.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ let FeedlyApiClient = function (accessToken) {
}

function json(response) {
return response.json()
return response.json().catch(function () {
return {};
});
}

let url = this.getMethodUrl(methodName, settings.parameters, settings.useSecureConnection);
Expand Down

0 comments on commit 515c26f

Please sign in to comment.