mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-26 15:35:45 +01:00
Fix some unnecessary error reports for invalid jar: URLs. Also complete the JAR file portion of the URL.
This commit is contained in:
@@ -1722,7 +1722,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
*/
|
||||
trapErrors: function trapErrors(func, self) {
|
||||
try {
|
||||
if (isString(func))
|
||||
if (!callable(func))
|
||||
func = self[func];
|
||||
return func.apply(self || this, Array.slice(arguments, 2));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user