Merge pull request #778 from omerjerk/QA_4_1

bugfix in error_report.js
This commit is contained in:
Atul Pratap Singh 2013-12-06 22:13:03 -08:00
commit dd3fef83e2

View File

@ -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;