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

Fix referrer title in the CLI login page #889

Merged
merged 1 commit into from
Nov 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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