har-export-trigger icon indicating copy to clipboard operation
har-export-trigger copied to clipboard

If deafault js Map() object is rewriten on a page extension is crashing.

Open N7Remus opened this issue 6 years ago • 0 comments

Example : http://www.onedoortrail.hu/ I solved the problem by writing the functions that Map() used as obj.(in harapi.js) var obj = { get: function(id){ for(var i=0;i<this.store.length;i++){ if (this.store[i].key==id){ return this.store[i].value; } } }, set: function(id,data){ this.store.push({key: id,value: data}); }, delete: function(id){ for(var i=0;i<this.store.length;i++){ if (this.store[i].key==id){ this.store.splice(i,1); } } }, store: [] } /* let callsInProgress = new Map(); */ let callsInProgress = obj;

N7Remus avatar Nov 09 '18 20:11 N7Remus