WIP: Changed how we check for code.pacman-ghost.com.

Pacman Ghost 2 years ago
parent 4a1d1b4cfb
commit c36687b381
  1. 3
      vasl_templates/webapp/static/help/main.js

@ -22,8 +22,7 @@ console.log( "=== READY ===" ) ;
$(this).click( function(evt) {
var url = $(this).attr( "href" ) ;
console.log( "click:", url ) ;
alert( url ) ;
if ( url[0] !== "#" && url.substring(0,16) !== "http://localhost" && url.substring(0,16) !== "http://127.0.0.1" && url.substring(0,21) !== "code.pacman-ghost.com" ) {
if ( url[0] !== "#" && url.substring(0,16) !== "http://localhost" && url.substring(0,16) !== "http://127.0.0.1" && url.indexOf( "code.pacman-ghost.com" ) !== -1 ) {
window.open( url ) ;
evt.preventDefault() ;
return false ;

Loading…
Cancel
Save