Skip to content

Commit

Permalink
Fix import v20 backup
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev committed Jan 5, 2024
1 parent 5dfba84 commit cd1df34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sources/api/JSONRPC_schema/schema-load-db.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"version": {
"type" : "string",
"required" : true,
"enum" : ["HyperHDR_export_format_v17"]
"enum" : ["HyperHDR_export_format_v17", "HyperHDR_export_format_v20"]
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion www/js/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ $(document).ready(function()
else
{
content = JSON.parse(content);
if (typeof content.instances === 'undefined' || typeof content.settings === 'undefined' || content.version !== "HyperHDR_export_format_v17")
if (typeof content.instances === 'undefined' || typeof content.settings === 'undefined' ||
content.version == null || !content.version.includes("HyperHDR_export_format_v"))
{
showInfoDialog('error', "", $.i18n('infoDialog_import_hyperror_text', f.name));
dis_imp_btn(true);
Expand Down

0 comments on commit cd1df34

Please sign in to comment.