statesman / Custom-Viewer-for-DocumentCloud

Fork of DocumentCloud viewer from WNYC.
http://statesman.github.io/Custom-Viewer-for-DocumentCloud/
0 stars 0 forks source link

Our minimalist.min.js breaks the doc viewer #9

Open critmcdonald opened 6 years ago

critmcdonald commented 6 years ago

The metrics branch attempts to add our BigJ metrics to the document viewer, and the non-working results are staged.

The console error is:

Uncaught TypeError: Cannot read property 'param' of undefined
    at init (?doc=1377329-ncsl-jackstick-2012:48)
    at onload (VM183 a193130:317)
    at window.onload (satellite-56c79d9d64746d5356000a13.js:48)

If I leave out the last include, the cmg-body-scripts.inc call, the document viewer works, but of course the metrics do not.

I'm at a loss and don't know how to troubleshoot this.