mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
10 lines
420 B
JavaScript
10 lines
420 B
JavaScript
|
// enable crash reporting first
|
||
|
let cwd = Components.classes["@mozilla.org/file/directory_service;1"]
|
||
|
.getService(Components.interfaces.nsIProperties)
|
||
|
.get("CurWorkD", Components.interfaces.nsILocalFile);
|
||
|
let crashReporter =
|
||
|
Components.classes["@mozilla.org/toolkit/crash-reporter;1"]
|
||
|
.getService(Components.interfaces.nsICrashReporter);
|
||
|
crashReporter.enabled = true;
|
||
|
crashReporter.minidumpPath = cwd;
|