Prevent undefined strings in tracker.

This commit is contained in:
Mike Cao 2024-03-27 20:05:19 -07:00
parent 4e77d95809
commit a5362d9197
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@
/* Helper functions */
const encode = str => {
if (!str) {
return undefined;
}
try {
const result = decodeURI(str);