Skip to content

Commit fded762

Browse files
committed
Correction in encodeQueryString()
1 parent b36b395 commit fded762

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/learnitdown_init.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,12 @@ function encodeQueryParam(name, first = false) {
281281
function encodeQueryString() {
282282
// We got data from localStorage. So, if no data, no query string!
283283
if (!window.localStorage) return('');
284-
query += encodeQueryParam('iemail', true) + encodeQueryParam('iid');
284+
query = encodeQueryParam('iemail', true) + encodeQueryParam('iid');
285285
query += encodeQueryParam('ifirstname') + encodeQueryParam('ilastname');
286286
query += encodeQueryParam('institution');
287287
query += encodeQueryParam('icourse') + encodeQueryParam('ictitle');
288288
query += encodeQueryParam('iurl') + encodeQueryParam('iref');
289-
query = encodeQueryParam('login');
289+
query += encodeQueryParam('login');
290290
query += encodeQueryParam('email') + encodeQueryParam('displayname');
291291
query += encodeQueryParam('firstname') + encodeQueryParam('lastname');
292292
// Detect if we have the Sepia or Night theme

0 commit comments

Comments
 (0)