Skip to content

Commit

Permalink
obsidian 0.15.8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dy-sh committed Jul 26, 2022
1 parent 49d8b80 commit cfbe7cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export default class RememberCursorPosition extends Plugin {
if (!this.lastEphemeralState)
this.lastEphemeralState = st;

if (!this.isEphemeralStatesEquals(st, this.lastEphemeralState)) {
this.saveEphemeralState(st)
if (!isNaN(st.scroll) && !this.isEphemeralStatesEquals(st, this.lastEphemeralState)) {
this.saveEphemeralState(st);
this.lastEphemeralState = st;
}
}
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": "remember-cursor-position",
"name": "Remember cursor position",
"version": "1.0.6",
"version": "1.0.7",
"minAppVersion": "0.9.12",
"description": "Remember cursor and scroll position for each note",
"author": "Dmitry Savosh",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-remember-cursor-position",
"version": "1.0.6",
"version": "1.0.7",
"description": "Remember cursor and scroll position for each note",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit cfbe7cb

Please sign in to comment.