Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Fix referrer title in the CLI login page (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
picturepan2 authored Nov 30, 2021
1 parent 1763e39 commit 77e5b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 77e5b97

Please sign in to comment.