From 95ab071254529c4e13ce6e8e4e8f8feef2796bba Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Mon, 30 Sep 2019 13:16:21 -0400 Subject: [PATCH] fix: remove jquery --- public/src/utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/src/utils.js b/public/src/utils.js index 60f27fed71..e3d76f0878 100644 --- a/public/src/utils.js +++ b/public/src/utils.js @@ -691,8 +691,9 @@ }, urlToLocation: function (url) { - url = encodeURI(url); - return $('')[0]; + var a = document.createElement('a'); + a.href = url; + return a; }, // return boolean if string 'true' or string 'false', or if a parsable string which is a number