1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-24 09:45:45 +01:00

Fix non-window observers.

This commit is contained in:
Kris Maglione
2014-02-22 09:46:03 -08:00
parent b6fbf2751a
commit 86336b6cca
2 changed files with 4 additions and 2 deletions

View File

@@ -308,7 +308,7 @@ var Storage = Module("Storage", {
addObserver: function addObserver(key, callback, window) {
var { observers } = this;
if (window)
if (window instanceof Ci.nsIDOMWindow)
observers = overlay.getData(window, "storage-observers", Object);
if (!hasOwnProperty(observers, key))