1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-13 15:54:54 +12:00

Fix set for Firefox & Safari (don't set non-own properties in for..in loop)

This commit is contained in:
Chris 2015-01-18 11:50:20 -07:00 committed by gorhill
parent 3e71ee90c6
commit c64e26deea

View file

@ -195,6 +195,9 @@ vAPI.storage = {
var key, values = [], placeholders = [];
for ( key in details ) {
if ( !details.hasOwnProperty(key) ) {
continue;
}
values.push(key);
values.push(JSON.stringify(details[key]));
placeholders.push('?, ?');