Skip to content

Commit

Permalink
fix: definition getId
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Sep 8, 2022
1 parent 205a9ec commit 56d5730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export interface CapacitorUpdaterPlugin {
* @returns {Promise<{ id: string }>} an Promise with id for this device
* @throws An error if the something went wrong
*/
getId(): Promise<{ id: string }>;
getDeviceId(): Promise<{ id: string }>;

/**
* Get the native Capacitor Updater plugin version (sent to auto update server)
Expand Down
2 changes: 1 addition & 1 deletion src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CapacitorUpdaterWeb
console.warn('Cannot set active bundle in web', options);
return;
}
async getId(): Promise<{ id: string }> {
async getDeviceId(): Promise<{ id: string }> {
console.warn('Cannot get ID in web');
return { id: 'default' };
}
Expand Down

0 comments on commit 56d5730

Please sign in to comment.