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