mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 01:35:28 +03:00
Fix Sonar issues in gui.js
This commit is contained in:
parent
59076c0c3a
commit
7ff2e6e79f
3 changed files with 118 additions and 113 deletions
|
@ -114,20 +114,12 @@ Clipboard._configureClipboardAsOther = function() {
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
switch (GUI.Mode) {
|
||||
case GUI_Modes.NWJS:
|
||||
if (GUI.isNWJS()){
|
||||
Clipboard._configureClipboardAsNwJs(GUI.nwGui);
|
||||
break;
|
||||
|
||||
case GUI_Modes.ChromeApp:
|
||||
} else if (GUI.isChromeApp()) {
|
||||
Clipboard._configureClipboardAsChrome();
|
||||
break;
|
||||
|
||||
case GUI_Modes.Cordova:
|
||||
} else if (GUI.isCordova()) {
|
||||
Clipboard._configureClipboardAsCordova();
|
||||
break;
|
||||
|
||||
default:
|
||||
} else {
|
||||
Clipboard._configureClipboardAsOther();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue