clear currentScript to null not undefined

This commit is contained in:
TheMas3212 2022-01-02 02:16:32 +11:00
parent a20dd47ec6
commit 6251678532
No known key found for this signature in database
GPG Key ID: 62A173A4FDA683CA

@ -126,6 +126,7 @@ export function Root(props: IProps): React.ReactElement {
})
if (currentScript && (GetServer(currentScript.hostname) === null)) {
currentScript = openScripts[0];
if (currentScript === undefined) currentScript = null;
}