-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Rebase] Warn users on possible risks on installing third party unvetted plugins #676
base: main
Are you sure you want to change the base?
Conversation
// save intervalId to clear the interval when the | ||
// component re-renders | ||
const intervalId = setInterval(() => { | ||
setWaitTimer(waitTimer - 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't set timeout work better for this then? Unless I'm misunderstanding?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, fair enough. Not really that skilled with react.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AAGaming00 current solution isn't ideal but should it be changed or can this PR go ahead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rereading this now, no, because I'm referencing the timeout on the translation on line 58 to show the remaining time ticking down to give additional feedback to the user, so I can't see how I would be doing this with one single timeout tick compared to one for each second. It was like 6 months from when I wrote this, so I was not that sure why I did stuff at the time, sorry XD. Let me know if I'm missing something.
Please tick as appropriate:
Description
This PR implements proper warning messages for third party install outside our store to warn users of potential malicious code outside our ecosystem.