diff --git a/js/error_report.js b/js/error_report.js index 3fdbb69f3d..c3765304d0 100644 --- a/js/error_report.js +++ b/js/error_report.js @@ -213,7 +213,7 @@ var ErrorReport = { "current_url": window.location.href, "microhistory": ErrorReport._get_microhistory() }; - if (typeof AJAX.cache.pages[this.current - 1] === 'undefined') { + if (typeof AJAX.cache.pages[AJAX.cache.current - 1] !== 'undefined') { report_data.scripts = AJAX.cache.pages[AJAX.cache.current - 1].scripts.map( function (script) { return script.name;