Hello,
I am using JS SDK. I was trying to minify the script using a service that uses Google Closure for that.
It showed an error regarding line 55 (same error for many files of the SDK source code):
xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
It says that
gHeaderKey
is not defined. So I turned it to
"gHeaderKey"
And it was able to minify and works (for now..)
There are other occurrences of
setRequestHeader
but they use string parameters, so there were no problems with those.
So (if possible) please use string parameters because they are more robust for these cases.
Thank you.