Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
linanwx committed Aug 8, 2023
1 parent cccad6b commit dd2de56
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AosrWriterHelper {
constructor() {
this.event1 = app.workspace.on("active-leaf-change", async (leaf) => {
let view = app.workspace.getActiveViewOfType(MarkdownView)
if (!view) {
if (!view || !view.file) {
return
}
this.checkDebounced(view.file, view.editor.getValue())
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "aosr",
"name": "Aosr",
"version": "1.1.0",
"version": "1.1.1",
"minAppVersion": "0.12.0",
"description": "Another obsidian spaced repetition",
"author": "linanwx",
Expand Down
43 changes: 22 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@types/codemirror": "^5.60.8",
"@types/lodash": "^4.14.194",
"@types/lokijs": "^1.5.8",
"@types/nedb": "^1.8.13",
Expand All @@ -21,7 +22,7 @@
"@typescript-eslint/parser": "5.29.0",
"builtin-modules": "3.3.0",
"esbuild": "0.14.47",
"obsidian": "latest",
"obsidian": "^1.4.0",
"tslib": "2.4.0",
"typescript": "4.7.4"
},
Expand Down

0 comments on commit dd2de56

Please sign in to comment.