Browse Source

Expose `crashReporter` to sandbox

Thiago de Arruda 8 years ago
parent
commit
3a97cfc359
1 changed files with 6 additions and 0 deletions
  1. 6 0
      lib/sandboxed_renderer/api/exports/electron.js

+ 6 - 0
lib/sandboxed_renderer/api/exports/electron.js

@@ -11,6 +11,12 @@ Object.defineProperties(exports, {
       return require('../../../renderer/api/remote')
     }
   },
+  crashReporter: {
+    enumerable: true,
+    get: function () {
+      return require('../../../common/api/crash-reporter')
+    }
+  },
   CallbacksRegistry: {
     get: function () {
       return require('../../../common/api/callbacks-registry')