Commit 23f66296 authored by Mike Perry's avatar Mike Perry
Browse files

Wrap Ctypes import in a try/catch.

It throws an exception if ctypes is disabled during FF build.
parent c5a14f99
......@@ -8,7 +8,8 @@ const Ci = Components.interfaces;
const Cr = Components.results;
const Cu = Components.utils;
Cu.import("resource://gre/modules/ctypes.jsm");
// ctypes can be disabled at build time
try { Cu.import("resource://gre/modules/ctypes.jsm"); } catch(e) {}
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "TorLauncherUtil",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment