Skip to content

Commit

Permalink
Yet more fixes for module paths (bug 912121)
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed Sep 24, 2015
1 parent c80acd4 commit 45f4559
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/har-driver-actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
// See also: https://bugzilla.mozilla.org/show_bug.cgi?id=912121
var devtools;
try {
devtools = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {});
devtools = Cu.import("resource://gre/modules/devtools/shared/Loader.jsm", {}).devtools;
} catch (err) {
devtools = Cu.import("resource://gre/modules/devtools/Loader.jsm", {});
devtools = Cu.import("resource://gre/modules/devtools/Loader.jsm", {}).devtools;
}

var DevToolsUtils;
Expand All @@ -31,7 +31,7 @@ try {
DevToolsUtils = devtools["require"]("devtools/toolkit/DevToolsUtils");
}

const { DebuggerServer } = Cu.import("resource://gre/modules/devtools/dbg-server.jsm", {});
const { DebuggerServer } = devtools["require"]("devtools/server/main");
const protocol = devtools["require"]("devtools/server/protocol");
const { method, RetVal, ActorClass, Actor, Arg, types } = protocol;

Expand Down

0 comments on commit 45f4559

Please sign in to comment.