fix error stack not reporting to autolog

This commit is contained in:
Ezequiel Bergamaschi 2015-05-09 17:28:59 -03:00
parent 1320bb737c
commit c6c825fedc

View File

@ -78,7 +78,7 @@ function buildDesigner(options) {
headers: {"Content-Type": "application/json", "Accept": "application/json"},
data: JSON.stringify({
jsErrorMsg: "Message: '" + errorMsg + "', line:'" + lineNo + "', url: :" + url,
jsStack: window.event.errorStack || window.errorStack,
jsStack: window.event.error.stack || window.errorStack,
userAgent: navigator.userAgent,
mapId: options.mapId
})