pi-updater 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +2 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -162,13 +162,13 @@ export default function (pi: ExtensionAPI) {
|
|
|
162
162
|
pi.on("session_start", async (_event, ctx) => {
|
|
163
163
|
if (!ctx.hasUI) return;
|
|
164
164
|
const latest = getUpgradeVersion();
|
|
165
|
-
if (latest)
|
|
165
|
+
if (latest) await showUpdatePrompt(ctx, latest);
|
|
166
166
|
});
|
|
167
167
|
|
|
168
168
|
pi.on("session_switch", async (_event, ctx) => {
|
|
169
169
|
if (!ctx.hasUI) return;
|
|
170
170
|
const latest = getUpgradeVersion();
|
|
171
|
-
if (latest)
|
|
171
|
+
if (latest) await showUpdatePrompt(ctx, latest);
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
pi.registerCommand("update", {
|