mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 20:42:27 +01:00
Check for Components.utils.reportError before calling it
This commit is contained in:
@@ -50,7 +50,8 @@ const liberator = (function () //{{{
|
|||||||
catch (e)
|
catch (e)
|
||||||
{
|
{
|
||||||
toJavaScriptConsole();
|
toJavaScriptConsole();
|
||||||
Components.utils.reportError(e);
|
if (Components.utils.reportError)
|
||||||
|
Components.utils.reportError(e);
|
||||||
liberator.dump(e + "\n");
|
liberator.dump(e + "\n");
|
||||||
liberator.dump(e.stack + "\n");
|
liberator.dump(e.stack + "\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user