diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-04-19 15:06:42 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@owncloud.com> | 2016-04-19 15:06:42 +0200 |
commit | 05d203a989721f3e456ba516ef07be3fd72f460b (patch) | |
tree | 58073f16f936f8ce3b26ad3db377ecf1e5da085a /settings/js/certificates.js | |
parent | 37530f27f00a1b284c339d8b8a11563d79ca5757 (diff) | |
download | nextcloud-server-05d203a989721f3e456ba516ef07be3fd72f460b.tar.gz nextcloud-server-05d203a989721f3e456ba516ef07be3fd72f460b.zip |
replace $.parseJSON() by JSON.parse()
Diffstat (limited to 'settings/js/certificates.js')
-rw-r--r-- | settings/js/certificates.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/certificates.js b/settings/js/certificates.js index f2a8e6b0afb..7e62a4f5157 100644 --- a/settings/js/certificates.js +++ b/settings/js/certificates.js @@ -24,10 +24,10 @@ $(document).ready(function () { }, success: function (data) { if (typeof data === 'string') { - data = $.parseJSON(data); + data = JSON.parse(data); } else if (data && data.length) { // fetch response from iframe - data = $.parseJSON(data[0].body.innerText); + data = JSON.parse(data[0].body.innerText); } if (!data || typeof(data) === 'string') { // IE8 iframe workaround comes here instead of fail() |