mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 13:19:22 +01:00
Must decode the code!
This commit is contained in:
parent
3acaac2d47
commit
bcd91851d2
1 changed files with 3 additions and 1 deletions
|
@ -91,7 +91,9 @@ function App() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const instanceURL = store.local.get('instanceURL');
|
const instanceURL = store.local.get('instanceURL');
|
||||||
const code = (window.location.search.match(/code=([^&]+)/) || [])[1];
|
const code = decodeURIComponent(
|
||||||
|
(window.location.search.match(/code=([^&]+)/) || [, ''])[1],
|
||||||
|
);
|
||||||
|
|
||||||
if (code) {
|
if (code) {
|
||||||
console.log({ code });
|
console.log({ code });
|
||||||
|
|
Loading…
Reference in a new issue