@vlayer/sdk 0.1.0-nightly-20241002-4630acc → 0.1.0-nightly-20241003-02dfc5d
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -31,8 +31,8 @@ export const createExtensionWebProofProvider = ({
|
|
31
31
|
}: WebProofProviderSetup): WebProofProvider => {
|
32
32
|
return {
|
33
33
|
getWebProof: async function (webProofSetup: WebProofSetupInput) {
|
34
|
-
// TODO: we
|
35
|
-
//
|
34
|
+
// TODO: we can't assume that developer is using vite
|
35
|
+
// VITE_EXTENSION_ID value should be injected by the build system
|
36
36
|
|
37
37
|
return new Promise<WebProof>((resolve, reject) => {
|
38
38
|
chrome.runtime.sendMessage(import.meta.env.VITE_EXTENSION_ID, {
|
@@ -46,7 +46,7 @@ export const createExtensionWebProofProvider = ({
|
|
46
46
|
});
|
47
47
|
const EXTENSION_ID = import.meta.env.VITE_EXTENSION_ID as string;
|
48
48
|
const port = chrome.runtime.connect(EXTENSION_ID);
|
49
|
-
//TODO
|
49
|
+
// TODO: validate message in runtime
|
50
50
|
port.onMessage.addListener(
|
51
51
|
(
|
52
52
|
message:
|