Prevent undefined strings in tracker.
This commit is contained in:
parent
4e77d95809
commit
a5362d9197
|
@ -33,6 +33,10 @@
|
||||||
/* Helper functions */
|
/* Helper functions */
|
||||||
|
|
||||||
const encode = str => {
|
const encode = str => {
|
||||||
|
if (!str) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const result = decodeURI(str);
|
const result = decodeURI(str);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue