Skip to content

Commit 7619146

Browse files
committed
fix: link and color types cannot be pasted
1 parent 81db3e5 commit 7619146

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src-tauri/src/api/clipboard.rs

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ pub async fn write_and_paste(
3333

3434
match content_type.as_str() {
3535
"text" => clipboard.write_text(content).map_err(|e| e.to_string())?,
36+
"link" => clipboard.write_text(content).map_err(|e| e.to_string())?,
37+
"color" => clipboard.write_text(content).map_err(|e| e.to_string())?,
3638
"image" => {
3739
clipboard.write_image_base64(content).map_err(|e| e.to_string())?;
3840
}

0 commit comments

Comments
 (0)