Skip to content

Commit

Permalink
fix: admin manager recursive iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Jan 3, 2024
1 parent 9d26130 commit b0faea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions panel/src/pages/Iframe.tsx
Expand Up @@ -3,6 +3,8 @@ type Props = {
};

export default function Iframe({ legacyUrl }: Props) {
//NOTE: if you open adminManager with autofill, the autofill will continue in the searchParams
//This is an annoying issue to fix, so #wontfix
const searchParams = location.search ?? '';
const hashParams = location.hash ?? '';
return (
Expand Down
2 changes: 1 addition & 1 deletion web/main/adminManager.ejs
Expand Up @@ -197,7 +197,7 @@
citizenfxID: params.get('citizenfx') ?? '',
discordID: discordValue && discordValue.includes(':') ? discordValue.split(':')[1] : '',
}
window.history.pushState(null, 'txAdmin', 'adminManager?');
window.history.pushState(null, 'txAdmin', 'legacy/adminManager?');
getAdminModal();
}
Expand Down

0 comments on commit b0faea8

Please sign in to comment.