mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 12:45:49 +01:00
Don't report live bookmark items as bookmarked.
This commit is contained in:
@@ -308,10 +308,10 @@ var storage = {
|
||||
alwaysReload: {},
|
||||
newObject: function newObject(key, constructor, store, type, options, reload)
|
||||
{
|
||||
if (!(key in keys) || reload || key in this.alwaysReload)
|
||||
if (!(key in keys) || reload || this.alwaysReload[key])
|
||||
{
|
||||
if (key in this && !reload)
|
||||
throw Error;
|
||||
if (key in this && !(reload || this.alwaysReload[key]))
|
||||
throw Error();
|
||||
let load = function () loadPref(key, store, type || Object);
|
||||
keys[key] = new constructor(key, store, load, options || {});
|
||||
timers[key] = new Timer(1000, 10000, function () storage.save(key));
|
||||
|
||||
Reference in New Issue
Block a user