(e, rootHref)
| 378 | } |
| 379 | |
| 380 | function error(e, rootHref) { |
| 381 | if (!options.errorReporting || options.errorReporting === "html") { |
| 382 | errorHTML(e, rootHref); |
| 383 | } else if (options.errorReporting === "console") { |
| 384 | errorConsole(e, rootHref); |
| 385 | } else if (typeof options.errorReporting === 'function') { |
| 386 | options.errorReporting("add", e, rootHref); |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | return { |
| 391 | add: error, |
no test coverage detected