Skip to content

Commit

Permalink
Force GPM::getUpdates call to json extension, in order to properly ge…
Browse files Browse the repository at this point in the history
…t back JSON response in case of error (#980)
  • Loading branch information
w00fz committed Feb 16, 2017
1 parent 799f13b commit 7c7ba1b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 31 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
1. [](#bugfix)
* Fix issue with validating page when switching language [#963](https://github.com/getgrav/grav-plugin-admin/issues/963)
* Fix issue with quotes in Admin strings used in JS [#965](https://github.com/getgrav/grav-plugin-admin/issues/965)
* Force GPM::getUpdates call to json extension, in order to properly get back JSON response in case of error [#980](https://github.com/getgrav/grav-plugin-admin/issues/980)

# v1.2.12
## 02/12/2017
Expand Down
2 changes: 1 addition & 1 deletion themes/grav/app/utils/gpm.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class GPM extends EventEmitter {

this.emit('fetching', this);

fetch(config.base_url_relative, {
fetch(`${config.base_url_relative}.json`, {
credentials: 'same-origin',
method: 'post',
body: data
Expand Down
30 changes: 15 additions & 15 deletions themes/grav/js/admin.min.js

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions themes/grav/js/vendor.min.js

Large diffs are not rendered by default.

0 comments on commit 7c7ba1b

Please sign in to comment.