chore: debug lms detection on client side

This commit is contained in:
Rotimi Best
2025-11-08 05:34:17 +01:00
parent 7715834566
commit 3d64e25b89
2 changed files with 12 additions and 10 deletions
+3 -2
View File
@@ -52,7 +52,8 @@
console.log(
'Welcome to ClassroomIO, we are grateful you chose us.',
$page.url.host,
`\nIs student domain: ${data.isOrgSite}`
`\nIs student domain: ${data.isOrgSite}`,
data
);
if (browser) {
@@ -100,7 +101,7 @@
// }
});
if (data.isOrgSite && data.org && !$currentOrg.siteName) {
if (data.isOrgSite && data.org && $currentOrg.siteName !== data.org.siteName) {
$globalStore.orgSiteName = data.orgSiteName;
$globalStore.isOrgSite = data.isOrgSite;