Skip to content

Instantly share code, notes, and snippets.

@valueof
Created October 15, 2012 22:26
Show Gist options
  • Save valueof/3896038 to your computer and use it in GitHub Desktop.
Save valueof/3896038 to your computer and use it in GitHub Desktop.
XPCOMUtils.defineLazyGetter(DebuggerController, "_isRemoteDebugger", function() {
// We're inside a single top level XUL window, not an iframe container.
return !(window.frameElement instanceof XULElement) &&
!!window._remoteFlag;
});
XPCOMUtils.defineLazyGetter(DebuggerController, "_isChromeDebugger", function() {
// We're inside a single top level XUL window, but not a remote debugger.
return !(window.frameElement instanceof XULElement) &&
!window._remoteFlag;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment