Prevent undefined strings in tracker.
This commit is contained in:
1 parent
4e77d95809
commit
a5362d9197
1 file changed
+4
@@ -33,6 +33,10 @@
|
||||
/* Helper functions */
|
||||
|
||||
const encode = str => {
|
||||
if (!str) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
try {
|
||||
const result = decodeURI(str);
|
||||
|
||||
|
||||
Reference in new issue
Block a user