mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Fix circular structure typeerror in chromium
The variable ```params``` contains the member ```obj``` which does not seem to be of interest by the server. In chromium, this obj - member leads to an ```Uncaught TypeError: Converting circular structure to JSON``` when calling ```JSON.stringify``` on this ```params``` object in the ```storage.patchContact(...)``` function.
This commit is contained in:
parent
b5990d529f
commit
c2b6b16fa6
@ -330,6 +330,7 @@ OC.Contacts = OC.Contacts || {};
|
||||
|
||||
Contact.prototype.deleteProperty = function(params) {
|
||||
var obj = params.obj;
|
||||
params = {};
|
||||
if(!this.enabled) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user