Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Dec 12, 2024
1 parent 517b2a9 commit e442178
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/VortexEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ export default class VortexEditor {

async checkVersion(device, version) {
// the results are lowercased
let lowerDevice = device.toLowerCase();
if (!lowerDevice.length || lowerDevice === 'none') {
lowerDevice = this.modesPanel.selectedDevice.toLowerCase();
if (!lowerDevice.length || lowerDevice === 'none') {
if (!device.length || device === 'None') {
device = this.modesPanel.selectedDevice;
if (!device.length || device === 'None') {
// not connected?
return;
}
}
let lowerDevice = device.toLowerCase();

// this can happen if the update panel is forced open with Insert
if (!version) {
Expand Down

0 comments on commit e442178

Please sign in to comment.