Commit 8ecc6f8f authored by Boris Kocherov's avatar Boris Kocherov

normalize schema_url option

parent 2ebe4120
...@@ -799,7 +799,8 @@ ...@@ -799,7 +799,8 @@
} }
} }
if (options.hasOwnProperty("schema_url")) { if (options.hasOwnProperty("schema_url")) {
z.schema_url = options.schema_url; z.schema_url = (new URL(options.schema_url, window.location))
.toString();
} }
if (options.value !== undefined) { if (options.value !== undefined) {
z.value = JSON.stringify(options.value); z.value = JSON.stringify(options.value);
......
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