/datum/debugFileOutput
This is a generic handler for logging your dumb JS errors generated by html popups
- Add your logfile to the validFiles list
- Include the "browserassets/js/errorHandler.js" file in your html file (if using chui, skip this step) (look at browserOutput.html for an example)
- Call attachErrorHandler('yourLogFile'); at the top of your JS (again see browserOutput.js for an example)