dasmoth / dalliance

Interactive web-based genome browser.
http://www.biodalliance.org/
BSD 2-Clause "Simplified" License
227 stars 68 forks source link

Add port number to prefix, if relevant #159

Closed mfcovington closed 9 years ago

mfcovington commented 9 years ago

If a Dalliance genome browser is being tested (or hosted) on a port other than 80 and prefix is specified, resources fail to load because the resolved URLs lack the port number.

I've updated cbrowser.js such that if window.location.port exists, it gets incorporated into this.prefix. Now everything works for me regardless of port.