Skip to content

Conversation

@batiFinkelshtein
Copy link
Collaborator

i add function that in the plugin send api request to get id for the current user she used with cookie

Copy link
Collaborator

@MalkySinowitz MalkySinowitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks very good

chrome.runtime.onStartup.addListener(() => initializeBlockedSitesCache());
chrome.runtime.onInstalled.addListener(() => initializeBlockedSitesCache());
function fetchUserData() {
fetch('http://localhost:5000/users/me', {
Copy link
Collaborator

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

Copy link
Collaborator

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

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Extension Popup</title>
<style>
body {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. move all styles to separate scss file
  2. all colors should be defined in variables file
  3. all values should be defined with % instead of px

Copy link
Collaborator

@MalkySinowitz MalkySinowitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants