Difference between revisions of "Team:Cambridge-JIC/Templates/Menu"

Line 123: Line 123:
 
if(!hr.match(/http:/g)) {
 
if(!hr.match(/http:/g)) {
  
if(~window.location.indexOf(hr)){
+
if(~window.location.href.indexOf(hr)){
 
console.log(hr)
 
console.log(hr)
 
}
 
}

Revision as of 00:06, 4 August 2015