Skip to content

Commit 650c47d

Browse files
committed
Restoring previous encodeQueryString()
1 parent 78bece6 commit 650c47d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

R/learnitdown_init.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,14 +281,14 @@ 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('login', true);
285+
query += encodeQueryParam('email') + encodeQueryParam('displayname');
286+
query += encodeQueryParam('firstname') + encodeQueryParam('lastname');
287+
query += encodeQueryParam('iemail') + encodeQueryParam('iid');
285288
query += encodeQueryParam('ifirstname') + encodeQueryParam('ilastname');
286289
query += encodeQueryParam('institution');
287290
query += encodeQueryParam('icourse') + encodeQueryParam('ictitle');
288291
query += encodeQueryParam('iurl') + encodeQueryParam('iref');
289-
query += encodeQueryParam('login');
290-
query += encodeQueryParam('email') + encodeQueryParam('displayname');
291-
query += encodeQueryParam('firstname') + encodeQueryParam('lastname');
292292
// Detect if we have the Sepia or Night theme
293293
// TODO: refine this because it is *always* detected
294294
//if (document.getElementsByClassName('color-theme-1')) {

0 commit comments

Comments
 (0)