Skip to content

Commit af5f91e

Browse files
committed
Fix another error message
1 parent 721840d commit af5f91e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/trigger-toolbox-overlay.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,13 @@ const TriggerToolboxOverlay = Class(
166166
}
167167

168168
if (!harOverlay.automation) {
169-
let pref = "devtools.netmonitor.har.enableAutoExportToFile";
170-
let autoExport = Services.prefs.getBoolPref(pref);
171-
if (!autoExport) {
172-
Cu.reportError("You need to set '" + pref + "' pref to enable " +
173-
" automated HAR export (browser restart is required)");
169+
let pref1 = "devtools.netmonitor.har.enableAutoExportToFile";
170+
let pref2 = "extensions.netmonitor.har.enableAutomation";
171+
172+
if (!harOverlay.automation) {
173+
Cu.reportError("You need to set '" + pref1 + "' or '" + pref2 +
174+
"' pref to enable automated HAR export " +
175+
"(browser restart is required)");
174176
}
175177
return;
176178
}

0 commit comments

Comments
 (0)