mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 01:35:28 +03:00
Remove ChromeOS support
This commit is contained in:
parent
5a56a6d70c
commit
fec4ab4b6a
10 changed files with 23 additions and 202 deletions
|
@ -57,28 +57,6 @@ Clipboard._configureClipboardAsNwJs = function(nwGui) {
|
|||
};
|
||||
};
|
||||
|
||||
Clipboard._configureClipboardAsChrome = function() {
|
||||
|
||||
console.log('Chrome Clipboard available');
|
||||
|
||||
this.available = true;
|
||||
this.readAvailable = false; // FIXME: for some reason the read is not working
|
||||
this.writeAvailable = true;
|
||||
|
||||
this.writeText = function(text, onSuccess, onError) {
|
||||
navigator.clipboard.writeText(text)
|
||||
.then(onSuccess)
|
||||
.catch(onError);
|
||||
};
|
||||
|
||||
this.readText = function(onSuccess, onError) {
|
||||
navigator.clipboard.readText()
|
||||
.then(onSuccess)
|
||||
.catch(onError);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Clipboard._configureClipboardAsCordova = function() {
|
||||
|
||||
console.log('Cordova Clipboard available');
|
||||
|
@ -116,8 +94,6 @@ Clipboard._configureClipboardAsOther = function() {
|
|||
|
||||
if (GUI.isNWJS()){
|
||||
Clipboard._configureClipboardAsNwJs(GUI.nwGui);
|
||||
} else if (GUI.isChromeApp()) {
|
||||
Clipboard._configureClipboardAsChrome();
|
||||
} else if (GUI.isCordova()) {
|
||||
Clipboard._configureClipboardAsCordova();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue