Skip to content

Commit

Permalink
fix: web
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Jul 1, 2022
1 parent 1b6187d commit 9f0131c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/web.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { WebPlugin } from '@capacitor/core';

import type { CapacitorUpdaterPlugin, BundleInfo } from './definitions';
import type { CapacitorUpdaterPlugin, BundleInfo, latestVersion } from './definitions';

const BUNDLE_BUILTIN: BundleInfo = { status: 'success', version: '', downloaded: '1970-01-01T00:00:00.000Z', id: 'builtin' };

Expand Down Expand Up @@ -50,6 +50,13 @@ export class CapacitorUpdaterWeb
console.warn('Cannot reload current bundle in web');
return;
}
async getLatest(): Promise<latestVersion> {
console.warn('Cannot getLatest current bundle in web');
return {
version: "0.0.0",
message: "Cannot getLatest current bundle in web",
}
}
async notifyAppReady(): Promise<BundleInfo> {
console.warn('Cannot notify App Ready in web');
return BUNDLE_BUILTIN;
Expand Down

0 comments on commit 9f0131c

Please sign in to comment.