Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions core/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ export function buildClipboardPermissionsLegacy(origin) {
* @param {Object} focusDescriptor - Information about what element has focus on the remote.
* @param {boolean} focusDescriptor.isContentEditable - True if focused element is contenteditable or a rich editor.
* @param {boolean} focusDescriptor.isRichEditor - True if in a known rich-editor context (Gmail, Docs, etc).
* @returns {Object} Paste route directive.
* @returns {string} .route - Either 'insertText' (plain) or 'preseed' (rich).
* @returns {string} .reason - Human-readable explanation.
* @returns {{route: string, reason: string}} Paste route directive — `route` is
* 'insertText' (plain) or 'preseed' (rich); `reason` is a human-readable explanation.
*/
export function selectPasteRoute(focusDescriptor) {
const { isContentEditable = false, isRichEditor = false } = focusDescriptor || {}
Expand Down