PenguinMod / PenguinMod-Home

A main dashboard page featuring community projects and featured content.
https://penguinmod.com
21 stars 45 forks source link

Bring the auth window to the top when the tab is reopened #62

Open Steve0Greatness opened 5 months ago

Steve0Greatness commented 5 months ago

One issue I frequently see people having in Scratch Auth's help topic is that the auth page "closes" when they paste their code into their profile(or the auth project). I'm pretty sure it's possible to do this using the focus() method on Window objects in JavaScript, but I haven't been able to get this working consistently myself.

Another solution would be to add a dialog box that shows the user how to reopen the auth window.

RedMan13 commented 5 months ago

you can make the browser focus on a window?

RedMan13 commented 5 months ago

also, the other solution is to just open a tab instead of a popup since you can get the same window object to work with

Steve0Greatness commented 4 months ago

also, the other solution is to just open a tab instead of a popup since you can get the same window object to work with

Alright then. I've made a branch on my fork of this repo that does this(available at Steve0Greatness/PenguinMod-Home:open-auth-new-tab). I could make a PR if you think this is the best way to address this issue.

Ianyourgod commented 1 month ago

this needs to be implemented for the new login method. ill try to do it after the server is put back up.