mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-30 00:55:30 +02:00
fix checking instanceof
This commit is contained in:
parent
2f987f790a
commit
9189daf1cd
@ -862,7 +862,7 @@ class NavContextMenu {
|
||||
|
||||
async download() {
|
||||
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;
|
||||
} else {
|
||||
this.nav_window_ref.start_load();
|
||||
|
Loading…
x
Reference in New Issue
Block a user