Internet Explorer does not have access to
if (!window.location.origin) {
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
}
This should now have
Regards,
Animesh Nanda
Sr. Software Engineer,
Photon Infotech Pvt. Ltd.
window.location.origin
, which is a bummer because it is a pretty handy variable to have, but we can make it work with a fairly straight forward check because we access .origin
;if (!window.location.origin) {
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
}
This should now have
.origin
set to what you would expect.Regards,
Animesh Nanda
Sr. Software Engineer,
Photon Infotech Pvt. Ltd.
No comments:
Post a Comment