Skip to content

Commit e7f4c0d

Browse files
authored
Fixed bug whereby new installation would fail on API Version check. (#37)
1 parent 68c505c commit e7f4c0d

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-apply-patterns",
33
"name": "Apply Patterns",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"minAppVersion": "0.13.9",
66
"description": "Apply custom patterns of find-and-replace in succession to text.",
77
"author": "Jacob Levernier",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-apply-patterns",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "An Obsidian plugin for applying patterns of find and replace in succession.",
55
"main": "main.js",
66
"scripts": {

src/ApplyPattern.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,4 @@ export const applyPattern = (
301301
command,
302302
});
303303
patternModal.open();
304-
};;;
304+
};

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export default class ApplyPatternsPlugin extends Plugin {
119119

120120
// Update settings if the API version has been incremented:
121121
if (
122+
userSettings === null ||
122123
userSettings.apiVersion === null ||
123124
userSettings.apiVersion < defaultSettings.apiVersion
124125
) {

versions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"1.2.1": "0.12.0",
77
"1.3.0": "0.12.0",
88
"1.3.1": "0.12.0",
9-
"1.4.0": "0.13.9"
9+
"1.4.0": "0.13.9",
10+
"1.4.1": "0.13.9"
1011
}

0 commit comments

Comments
 (0)