-
Notifications
You must be signed in to change notification settings - Fork 7
Bati save in cookies #148
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
base: main
Are you sure you want to change the base?
Bati save in cookies #148
Conversation
…_saveInCookies
MalkySinowitz
left a comment
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.
looks very good
extension-ui/background.js
Outdated
| chrome.runtime.onStartup.addListener(() => initializeBlockedSitesCache()); | ||
| chrome.runtime.onInstalled.addListener(() => initializeBlockedSitesCache()); | ||
| function fetchUserData() { | ||
| fetch('http://localhost:5000/users/me', { |
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.
you should have a variable with baseUrl
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.
this is not baseUrl what you did... it's fullUrl.
you should have http://localhost:5000 in the base variable
extension-ui/popup.html
Outdated
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Extension Popup</title> | ||
| <style> | ||
| body { |
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.
- move all styles to separate scss file
- all colors should be defined in variables file
- all values should be defined with % instead of px
MalkySinowitz
left a comment
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.
looks good
i add function that in the plugin send api request to get id for the current user she used with cookie