27 January 2014

Use a regular expression to check whether the location already has a guid, if it is not there then reload the page.

var lc = window.location;
if(!(/\?guid=/.test(lc))) {
    window.location = window.location + '?guid=' + guid
}

No comments:

Post a Comment