mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix: remove jquery
This commit is contained in:
@@ -691,8 +691,9 @@
|
||||
},
|
||||
|
||||
urlToLocation: function (url) {
|
||||
url = encodeURI(url);
|
||||
return $('<a href="' + url + '" />')[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
|
||||
|
||||
Reference in New Issue
Block a user