mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-31 01:24:37 +02:00
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…
x
Reference in New Issue
Block a user