Skip to content

Commit

Permalink
fix: resolve settings save error
Browse files Browse the repository at this point in the history
  • Loading branch information
jianzs committed May 17, 2024
1 parent 53674e2 commit ab194e8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "qiniu-image-uploader",
"name": "Qiniu Image Uploader",
"version": "1.1.2",
"version": "1.1.3",
"minAppVersion": "0.15.0",
"description": "Uploads images from your clipboard to qiniu.com and embeds uploaded image to your note.",
"author": "Jade Zheng",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "obsidian-sample-plugin",
"version": "1.1.2",
"version": "1.1.3",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
"version": "node version-bump.mjs && npm install"
},
"keywords": [],
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class SettingTab extends PluginSettingTab {
.addOption("No", t("NO"))
.setValue(this.plugin.settings.https)
.onChange(async (value) => {
this.plugin.settings.region = value;
this.plugin.settings.https = value;
await this.plugin.saveSettings();
const fiveSecondsMillis = 5_000;
if (value === "Yes") {
Expand Down
5 changes: 3 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"1.0.0": "0.15.0",
"1.1.0": "0.15.0",
"1.1.1": "0.15.0",
"1.1.2": "0.15.0"
}
"1.1.2": "0.15.0",
"1.1.3": "0.15.0"
}

0 comments on commit ab194e8

Please sign in to comment.