Skip to content

Commit b2cd8e2

Browse files
authored
fix(#49): id not copied in newer versions of electron
1 parent 7a7d671 commit b2cd8e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ joplin.plugins.register({
165165
const selectedFolder = await joplin.workspace.selectedFolder();
166166
folderId = selectedFolder.id;
167167
}
168-
navigator.clipboard.writeText(folderId);
168+
await joplin.clipboard.writeText(folderId);
169169

170170
await joplin.commands.execute("editor.focus");
171171
}

0 commit comments

Comments
 (0)