-
Notifications
You must be signed in to change notification settings - Fork 88
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
Modernize JS a little #273
Conversation
yuvipanda
commented
Jun 14, 2022
- Get rid of var
- Use class syntax rather than prototype syntax for classes
- Remove unused param
- Split classes to their own files
Based on #272 |
See 590b3fc for just the changes in this PR |
nbgitpuller/static/js/index.js
Outdated
progressTimers.forEach(function(timer) { clearInterval(timer); }); | ||
gsv.setProgressValue(100); | ||
gsv.setProgressText('Sync finished, redirecting...'); | ||
window.location.href = gs.redirectUrl; | ||
// window.location.href = gs.redirectUrl; |
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.
Was this commented out on purpose?
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.
Thanks @yuvipanda!
@@ -0,0 +1,56 @@ | |||
export class GitSync { |
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.
Great having these two classes into their own files!
- Get rid of var - Use class syntax rather than prototype syntax for classes - Remove unused param - Split classes to their own files
Was a debugging aid, accidentally left in
Thanks @GeorgianaElena |