mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Introduced use of conditional chaining operator
This commit is contained in:
@@ -807,7 +807,7 @@ class InputWaiter {
|
||||
// Dropped text is handled by the editor itself
|
||||
if (e.dataTransfer.getData("Text")) return;
|
||||
|
||||
if (e.dataTransfer.files && e.dataTransfer.files.length > 0) {
|
||||
if (e?.dataTransfer?.files?.length > 0) {
|
||||
this.loadUIFiles(e.dataTransfer.files);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user