added null check
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function () {
|
$(function () {
|
||||||
var url = window.location.search.match(/url=([^&]+)/);
|
var url = window.location.search.match(/url=([^&]+)/);
|
||||||
if (url.length > 1) {
|
if (url && url.length > 1) {
|
||||||
url = url[1];
|
url = url[1];
|
||||||
} else {
|
} else {
|
||||||
url = "http://petstore.swagger.wordnik.com/v2/swagger.json";
|
url = "http://petstore.swagger.wordnik.com/v2/swagger.json";
|
||||||
|
|||||||
Reference in New Issue
Block a user