Skip to content

Commit e4bb41a

Browse files
committed
feat: if value matches operators $user_id, $organization_id, $clientId will return from localStorage
1 parent ec73ce0 commit e4bb41a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/getValue.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ const getValue = (element) => {
109109
}
110110
}
111111

112+
if (value === '$user_id')
113+
value = localStorage.getItem('user_id')
114+
else if (value === '$organization_id')
115+
value = localStorage.getItem('organization_id')
116+
else if (value === '$clientId')
117+
value = localStorage.getItem('clientId')
112118
return value;
113119
};
114120

0 commit comments

Comments
 (0)