mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 12:42:26 +01:00
Check for Components.utils.reportError before calling it
This commit is contained in:
@@ -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