Commit 9c9bbdf8 authored by Boris Kocherov's avatar Boris Kocherov

fix issue if schema_url undefined

parent 73205edc
......@@ -824,7 +824,7 @@
z.schema = JSON.stringify(options.schema);
}
}
if (options.hasOwnProperty("schema_url")) {
if (options.schema_url) {
z.schema_url = (new URL(options.schema_url, window.location))
.toString();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment