mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 06:52:29 +02:00
Check for Components.utils.reportError before calling it
This commit is contained in:
1 parent
1084a94f65
commit
2b5daac844
1 file changed
+2
-1
@@ -50,7 +50,8 @@ const liberator = (function () //{{{
|
||||
catch (e)
|
||||
{
|
||||
toJavaScriptConsole();
|
||||
Components.utils.reportError(e);
|
||||
if (Components.utils.reportError)
|
||||
Components.utils.reportError(e);
|
||||
liberator.dump(e + "\n");
|
||||
liberator.dump(e.stack + "\n");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user