Skip to content

Commit

Permalink
fix manifest for connectPage
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamlangford committed Apr 25, 2024
1 parent 21c4d14 commit 5313d68
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/background/messenger/external/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@
import { _liftBackground as liftExternal } from "@/background/externalProtocol";
import * as local from "@/background/messenger/external/_implementation";
import { readPartnerAuthData } from "@/auth/authStorage";
import { getExtensionVersion } from "@/utils/extensionUtils";

export const connectPage = liftExternal("CONNECT_PAGE", async () =>
// TODO: Validate that this works with the 4-digit version number
browser.runtime.getManifest(),
// Ensure the version we send to the app is a valid semver.
({
...browser.runtime.getManifest(),
version: getExtensionVersion(),
}),
);

export const setExtensionAuth = liftExternal(
Expand Down

0 comments on commit 5313d68

Please sign in to comment.