mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-19 22:42:30 +02:00
Don't report live bookmark items as bookmarked.
This commit is contained in:
1 parent
e62d9f96a5
commit
8b7b290e65
4 files changed
+28
-25
No files matched your search
@@ -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