1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-31 03:32:38 +01:00

Workaround QueryInterface not properly mutating services.contentPrefs.

This commit is contained in:
Kris Maglione
2013-07-06 15:10:04 -07:00
parent 3ed7008565
commit 2e2952f0c1
2 changed files with 1 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ var Services = Module("Services", {
if (!service.interfaces.length)
return res.wrappedJSObject || res;
service.interfaces.forEach(function (iface) res.QueryInterface(Ci[iface]));
service.interfaces.forEach(function (iface) res instanceof Ci[iface]);
if (service.init && args.length) {
if (service.callable)
res[service.init].apply(res, args);