The decision given by Spocky is partially correct.
To serve the Anywhere script locally, you also need to make some changes to the code so that the domain can point to the Intuit site. Thus, CSS links and applications in the Blue Dot menu are redirected correctly to the Intuit domain.
(Note: Updating the intuit.ipp.ourDomain variable intuit.ipp.ourDomain not work as described above.)
Here is what I changed:
Lines 20-40 contain:
windowLoad : function() { intuit.ipp.jQuery(document).ready(function () { intuit.ipp.jQuery('script').each(function (){ // check if this script file is from our domain if (!this.src) { return; } var jsSrc = this.src; var jsSrcParts = jsSrc.replace(/http[s]?:\/\//, '').split('/'); var qs = intuit.ipp.ourDomain.exec(jsSrcParts[0]); if(!qs) { qs = document.domain.match(intuit.ipp.ourDomain); } if (!qs || !jsSrcParts[jsSrcParts.length - 1].match('intuit.ipp.anywhere') || !jsSrc.match(/:\/\/(.[^/]+)/)) { return; } // get ipp domain intuit.ipp.anywhere.serviceHost = jsSrc.match(/:\/\/(.[^/]+)/)[1];
I replaced them:
windowLoad : function() { intuit.ipp.jQuery(document).ready(function () { intuit.ipp.jQuery('script').each(function (){ // check if this script file is from our domain if (!this.src) { return; } var jsSrc = this.src; var jsSrcParts = jsSrc.replace(/http[s]?:\/\//, '').split('/'); var qs = intuit.ipp.ourDomain.exec(jsSrcParts[0]); // if(!qs) { // qs = document.domain.match(intuit.ipp.ourDomain); // } if (!jsSrcParts[jsSrcParts.length - 1].match('intuit.ipp.anywhere') || !jsSrc.match(/:\/\/(.[^/]+)/)) { return; } // get ipp domain //intuit.ipp.anywhere.serviceHost = jsSrc.match(/:\/\/(.[^/]+)/)[1]; intuit.ipp.anywhere.serviceHost = "appcenter.intuit.com";
source share