From 1f9ccef9b99a1adfa53cf1a22543f4bdbe2ac068 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 18 Jun 2022 13:51:20 +0200 Subject: restore compatibility with IceCat 60 This commit also fixes the --driver option to configure script. --- html/install.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'html') diff --git a/html/install.js b/html/install.js index 82df661..ce97877 100644 --- a/html/install.js +++ b/html/install.js @@ -50,7 +50,7 @@ #FROM common/entities.js IMPORT item_id_string, version_string, get_files #FROM common/misc.js IMPORT sha256_async AS compute_sha256 #FROM common/jsonschema.js IMPORT haketilo_validator, haketilo_schemas -#FROM common/entities.js IMPORT haketilo_schema_name_regex +#FROM common/entities.js IMPORT parse_schema_uri #FROM html/repo_query_cacher_client.js IMPORT indirect_fetch @@ -208,8 +208,8 @@ function InstallView(tab_id, on_view_show, on_view_hide) { `${captype} ${item_id_string(id, ver)} was served using a nonconforming response format.`; try { - const match = haketilo_schema_name_regex.exec(json.$schema); - var major_schema_version = match.groups.major; + const parsed = parse_schema_uri(json.$schema); + var major_schema_version = parsed.major; if (!["1", "2"].includes(major_schema_version)) { const msg = `${captype} ${item_id_string(id, ver)} was served using unsupported Hydrilla API version. You might need to update Haketilo.`; -- cgit v1.2.3