mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
fix iso file extension detection (#1426)
This commit is contained in:
parent
667313401d
commit
777b8c397c
1 changed files with 1 additions and 1 deletions
|
|
@ -2837,7 +2837,7 @@ function init_ui(profile, settings, emulator)
|
|||
const files = file_input.files;
|
||||
let buffer;
|
||||
|
||||
if(files.length === 1 && files[0].name.endsWith(".iso"))
|
||||
if(files.length === 1 && /\.(iso(9660|img)?|cdr)$/i.test(files[0].name))
|
||||
{
|
||||
buffer = files[0];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue