Vanessa 2022-10-05 21:29:56 +08:00
parent a2fb0071e7
commit d5931778cf
6 changed files with 34 additions and 30 deletions

View file

@ -14,7 +14,7 @@ export const openByMobile = (uri: string) => {
};
export const writeText = async (text: string) => {
let range: Range
let range: Range;
if (getSelection().rangeCount > 0) {
range = getSelection().getRangeAt(0).cloneRange();
}