Skip to content

Commit

Permalink
🎨 #13736
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jan 7, 2025
1 parent 56f8ea4 commit e72be57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/protyle/util/paste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const pasteAsPlainText = async (protyle: IProtyle) => {
}
if (localFiles.length > 0) {
uploadLocalFiles(localFiles, protyle, false);
writeText("");
return;
}
/// #endif
if (localFiles.length === 0) {
Expand Down Expand Up @@ -272,7 +272,6 @@ const readLocalFile = async (protyle: IProtyle, localFiles: string[]) => {
}
}
uploadLocalFiles(localFiles, protyle, true);
writeText("");
};

export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvent) & { target: HTMLElement }) => {
Expand Down

0 comments on commit e72be57

Please sign in to comment.