Skip to content

Commit

Permalink
extension adds key param to url when logging in
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed May 17, 2023
1 parent b28b449 commit 1661471
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion extension/jwtpopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@
document.querySelector('#token').innerText = token
document.querySelector('#request').innerText = request || ''
document.querySelector('#login').onclick = function () {
chrome.tabs.create({ url: 'https://nozee.xyz/login?msg=' + token })
chrome.tabs.query({ active: true, lastFocusedWindow: true }, tabs => {
let url = tabs[0].url.split('.')[1]
chrome.tabs.create({
url: `https://nozee.xyz/login?msg=${token}&key=${url}`
})
})
}
}

Expand Down

0 comments on commit 1661471

Please sign in to comment.