Skip to content

Commit

Permalink
fix: handling session not true or false
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jul 10, 2024
1 parent f8ad5f4 commit e4991be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const CoCreateUser = {
}

if (data.userStatus) {
let sessionElements = document.querySelectorAll('[session]:not([href])');
let sessionElements = document.querySelectorAll('[session]:not([session="true"], [session="false"])');
for (let i = 0; i < sessionElements.length; i++)
sessionElements[i].setAttribute('session', data.userStatus)
}
Expand Down

0 comments on commit e4991be

Please sign in to comment.