Skip to content

Commit

Permalink
JS indexOf provides better compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev committed Jan 5, 2024
1 parent cd1df34 commit 1d7835e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ $(document).ready(function()
{
content = JSON.parse(content);
if (typeof content.instances === 'undefined' || typeof content.settings === 'undefined' ||
content.version == null || !content.version.includes("HyperHDR_export_format_v"))
content.version == null || content.version.indexOf("HyperHDR_export_format_v") != 0)
{
showInfoDialog('error', "", $.i18n('infoDialog_import_hyperror_text', f.name));
dis_imp_btn(true);
Expand Down

0 comments on commit 1d7835e

Please sign in to comment.