diff --git a/main.js b/main.js index 769642f..034d02c 100644 --- a/main.js +++ b/main.js @@ -1164,6 +1164,10 @@ var NeoGDSync = class extends import_obsidian5.Plugin { this.pendingOps = (_b = saved == null ? void 0 : saved.pendingOps) != null ? _b : {}; this.conflicts = (_c = saved == null ? void 0 : saved.conflicts) != null ? _c : []; if (this.snapshot) this.snapshot.setRaw(saved == null ? void 0 : saved.snapshot); + if (this.settings.authProxyUrl === "https://ogd.richardxiong.com/api/access") { + this.settings.authProxyUrl = DEFAULT_SETTINGS.authProxyUrl; + await this.saveSettings(); + } } async saveSettings() { await this.saveData({ diff --git a/manifest.json b/manifest.json index 23c4214..bd11d2d 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "neogdsync", "name": "NeoGDSync", - "version": "1.0.3", + "version": "1.0.4", "minAppVersion": "1.6.0", "description": "Lightweight Google Drive sync with path-based index, conflict detection, and smart/push/pull modes.", "author": "martinlegend", diff --git a/src/main.ts b/src/main.ts index 24cffd9..43d1a58 100644 --- a/src/main.ts +++ b/src/main.ts @@ -292,6 +292,12 @@ export default class NeoGDSync extends Plugin { this.pendingOps = saved?.pendingOps ?? {}; this.conflicts = saved?.conflicts ?? []; if (this.snapshot) this.snapshot.setRaw(saved?.snapshot); + + // Migrate: replace legacy third-party proxy URL with self-hosted Worker + if (this.settings.authProxyUrl === 'https://ogd.richardxiong.com/api/access') { + this.settings.authProxyUrl = DEFAULT_SETTINGS.authProxyUrl; + await this.saveSettings(); + } } async saveSettings() { diff --git a/versions.json b/versions.json index f47b7d1..5254589 100644 --- a/versions.json +++ b/versions.json @@ -14,5 +14,6 @@ "1.0.0": "1.6.0", "1.0.1": "1.6.0", "1.0.2": "1.6.0", - "1.0.3": "1.6.0" + "1.0.3": "1.6.0", + "1.0.4": "1.6.0" }