From 77e5b970199c1f2b032d2a591a16c327a7bfa25e Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 30 Nov 2021 21:11:52 +0800 Subject: [PATCH] Fix referrer title in the CLI login page (#889) --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 95c0549d..8ce38954 100644 --- a/index.js +++ b/index.js @@ -110,8 +110,8 @@ exports.login = async function (options) { await eventtracking.track(eventtracking.EVENT_ID_LOGIN_END, { success: true, login_is_not_needed: true }, options); } else { const newUrl = new URL(options.walletUrl + '/login/'); - const title = 'NEAR CLI'; - newUrl.searchParams.set('title', title); + const referrer = 'NEAR CLI'; + newUrl.searchParams.set('referrer', referrer); const keyPair = await KeyPair.fromRandom('ed25519'); newUrl.searchParams.set('public_key', keyPair.getPublicKey());