fix checking instanceof
This commit is contained in:
parent
2f987f790a
commit
9189daf1cd
|
@ -862,7 +862,7 @@ class NavContextMenu {
|
||||||
|
|
||||||
async download() {
|
async download() {
|
||||||
var download_target = "";
|
var download_target = "";
|
||||||
if (this.nav_window_ref.selected_entries.size === 1 && !this.target instanceof NavDir) {
|
if (this.nav_window_ref.selected_entries.size === 1 && !(this.target instanceof NavDir)) {
|
||||||
download_target = this.target;
|
download_target = this.target;
|
||||||
} else {
|
} else {
|
||||||
this.nav_window_ref.start_load();
|
this.nav_window_ref.start_load();
|
||||||
|
|
Loading…
Reference in New Issue