mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:32:25 +01:00
Check for Components.utils.reportError before calling it
This commit is contained in:
@@ -50,6 +50,7 @@ const liberator = (function () //{{{
|
|||||||
catch (e)
|
catch (e)
|
||||||
{
|
{
|
||||||
toJavaScriptConsole();
|
toJavaScriptConsole();
|
||||||
|
if (Components.utils.reportError)
|
||||||
Components.utils.reportError(e);
|
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