mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[GraphEditor] Convert file to string before testing its extension
This fixes the "Property 'endsWith' of object file xxx is not a function" warning.
This commit is contained in:
parent
e214868d81
commit
bfb9ee3272
1 changed files with 1 additions and 1 deletions
|
@ -992,7 +992,7 @@ Item {
|
||||||
nbDraggedFiles = drag.urls.length
|
nbDraggedFiles = drag.urls.length
|
||||||
|
|
||||||
drag.urls.forEach(function(file) {
|
drag.urls.forEach(function(file) {
|
||||||
if (file.endsWith(".mg")) {
|
if (String(file).endsWith(".mg")) {
|
||||||
nbMeshroomScenes++
|
nbMeshroomScenes++
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue