Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jasonmarlin/7d0e3afdf9b5094a5d5141f535048746 to your computer and use it in GitHub Desktop.
Save jasonmarlin/7d0e3afdf9b5094a5d5141f535048746 to your computer and use it in GitHub Desktop.
Small change to CN embed so it will work locally
<script type="text/javascript">!function(n,e,t){var s,c;s=function(){var e=n.location.hostname,s=location.search.match(/CNS_SB=([^&\s]+)[&\s]?/)||[],c=e+"/cns"+(s.length?"-sandbox/"+s[1]:"")+"/services.min.js";return t||"//"+c}(),n.cns=n.cns||{async:function(n,e){this.queue[n]||(this.queue[n]=[]),"function"==typeof e&&this.queue[n].push(e)},queue:{}},c=e.createElement("script"),c.async=!0,c.src=s,e.body.appendChild(c)}(window,document ,'http://localhost:3000/cns/services.min.js'); </script>
<script type="text/javascript" src="<?= ars::$assets ?>/js/ars.ads.us.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment