Skip to content

Commit 8f44ea8

Browse files
committed
fix: include applicationVersion and isMedicalDevice in default getStatus response
1 parent 1ba05d1 commit 8f44ea8

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/CortiEmbedded.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,10 @@ export class CortiEmbedded extends LitElement implements CortiEmbeddedAPI {
504504
isAuthenticated: false,
505505
user: undefined,
506506
},
507+
applicationVersion: "",
507508
currentUrl: "",
508509
interaction: null,
510+
isMedicalDevice: false,
509511
};
510512
}
511513

test/corti-embedded.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,10 @@ describe("CortiEmbedded", () => {
424424
email: mockUser.email,
425425
},
426426
},
427+
applicationVersion: "v1.0.0",
427428
currentUrl: "https://example.com",
428429
interaction: null,
430+
isMedicalDevice: false,
429431
};
430432

431433
// Inject a minimal mock handler that responds via the generic postMessage interface
@@ -595,8 +597,10 @@ describe("CortiEmbedded", () => {
595597
isAuthenticated: false,
596598
user: undefined,
597599
},
600+
applicationVersion: "",
598601
currentUrl: "",
599602
interaction: null,
603+
isMedicalDevice: false,
600604
});
601605
});
602606

0 commit comments

Comments
 (0)