Skip to content

Commit

Permalink
#273 prefer 'text/html', if available
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 20, 2024
1 parent 98e1cac commit 75ee107
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const CHUNK_TIMEOUT = 10 * 1000;

const TEXT_PLAIN = "text/plain";
const UTF8_STRING = "UTF8_STRING";
const TEXT_HTML = "text/html";

const FLOAT_MENU_SELECTOR = "#float_menu";
const PASTEBOARD_SELECTOR = "#pasteboard";
Expand Down Expand Up @@ -272,7 +273,7 @@ class XpraClient {
this.clipboard_buffer = "";
this.clipboard_server_buffers = {};
this.clipboard_pending = false;
this.clipboard_targets = [UTF8_STRING, "TEXT", "STRING", TEXT_PLAIN];
this.clipboard_targets = [TEXT_HTML, UTF8_STRING, "TEXT", "STRING", TEXT_PLAIN];
if (
CLIPBOARD_IMAGES &&
navigator.clipboard &&
Expand Down

0 comments on commit 75ee107

Please sign in to comment.