Use fallback clipboard panel if permission is denied
This commit is contained in:
parent
d44f7e04fc
commit
ee31a24940
|
|
@ -1782,11 +1782,11 @@ const UI = {
|
|||
updateClipboard() {
|
||||
browserAsyncClipboardSupport()
|
||||
.then((support) => {
|
||||
if (support === 'unsupported') {
|
||||
if (support === 'unsupported' || support === 'denied') {
|
||||
// Use fallback clipboard panel
|
||||
return;
|
||||
}
|
||||
if (support === 'denied' || support === 'available') {
|
||||
if (support === 'available') {
|
||||
UI.closeClipboardPanel();
|
||||
document.getElementById('noVNC_clipboard_button')
|
||||
.classList.add('noVNC_hidden');
|
||||
|
|
|
|||
Loading…
Reference in New Issue