mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-29 08:41:11 +13:00
Fix set
for Firefox & Safari (don't set non-own properties in for..in loop)
This commit is contained in:
parent
3e71ee90c6
commit
c64e26deea
1 changed files with 3 additions and 0 deletions
|
@ -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('?, ?');
|
||||
|
|
Loading…
Reference in a new issue