updated for #849

This commit is contained in:
Tony Tam
2015-01-29 22:16:07 -08:00
parent 8962e220f1
commit a969680904
5 changed files with 42 additions and 32 deletions

View File

@@ -57,7 +57,7 @@ class SwaggerUi extends Backbone.Router
# Initialize the API object
@mainView?.clear()
url = @options.url
if url.indexOf("http") isnt 0
if url && url.indexOf("http") isnt 0
url = @buildUrl(window.location.href.toString(), url)
@options.url = url