aboutsummaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-06-18 13:51:20 +0200
committerWojtek Kosior <koszko@koszko.org>2022-06-18 13:51:20 +0200
commit1f9ccef9b99a1adfa53cf1a22543f4bdbe2ac068 (patch)
tree2dcaaed5343b4aa8bb83eeaa447b7f958a40c933 /html
parentf33dbdee39953f145bb986a7488e65e55e25d49d (diff)
downloadbrowser-extension-1f9ccef9b99a1adfa53cf1a22543f4bdbe2ac068.tar.gz
browser-extension-1f9ccef9b99a1adfa53cf1a22543f4bdbe2ac068.zip
restore compatibility with IceCat 60
This commit also fixes the --driver option to configure script.
Diffstat (limited to 'html')
-rw-r--r--html/install.js6
1 files changed, 3 insertions, 3 deletions
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.`;