freelawproject / recap

This repository is for filing issues on any RECAP-related effort.
https://free.law/recap/
12 stars 4 forks source link

Redo the DEBUG mode and simplify it in the RECAP extensions #192

Closed mlissner closed 6 years ago

mlissner commented 6 years ago

Turns out the way we're detecting if the extension is on a developer machine isn't supported by chrome, IE, or Opera.

I'm going to simplify this code into a single variable at the top of recap.js. If it's set to DEBUG=true, then you're in debug mode. If not, you're not. By default, it'll be set to false.

Having had this feature around a while, I think the risk is fairly low of messing up the RECAP Archive while working on the extension even if DEBUG is set to false by default.