1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 20:32:25 +01:00

Check for Components.utils.reportError before calling it

This commit is contained in:
Kris Maglione
2008-10-06 21:55:38 +00:00
parent 1084a94f65
commit 2b5daac844

View File

@@ -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");
} }