Skip to content

Commit 457f54f

Browse files
author
HAOUARI Noureddine
committed
v0.0.3 Fix getSelection Error
1 parent 37d9898 commit 457f54f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class YouglishPlugin extends Plugin {
4646
this.addRibbonIcon('languages', 'Youglish Plugin', () => {
4747
new SampleModal(this.app).open();
4848
let leaf = this.app.workspace.activeLeaf;
49-
this.onYouglishAPIReady(leaf.view.currentMode.cmEditor.getSelection());
49+
this.onYouglishAPIReady(leaf.view.currentMode.getSelection());
5050
});
5151

5252
this.addCommand({
@@ -60,7 +60,7 @@ export default class YouglishPlugin extends Plugin {
6060
if (leaf) {
6161
if (!checking) {
6262
new SampleModal(this.app).open();
63-
this.onYouglishAPIReady(leaf.view.currentMode.cmEditor.getSelection());
63+
this.onYouglishAPIReady(leaf.view.currentMode.getSelection());
6464
console.log(this)
6565
}
6666
return true;

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-youglish-plugin",
33
"name": "Youglish Plugin",
4-
"version": "0.0.2",
4+
"version": "0.0.3",
55
"minAppVersion": "0.9.12",
66
"description": "Use YouTube to improve your pronunciation. YouGlish gives you fast, unbiased answers about how words is spoken by real people and in context.",
77
"author": "Noureddine Haouari",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
"tslib": "^2.0.3",
2121
"typescript": "^4.0.3"
2222
}
23-
}
23+
}

0 commit comments

Comments
 (0)