vinitshahdeo/Cookie-Manager

Refactor code in background.js

vinitshahdeo opened this issue ยท 12 comments

  • Please check background.js and refactor the different methods inside this.

  • Do small, incremental changes that leave the code in a better state than it was found.

  • Do not make any changes in other files.

  • Make sure that the existing functionality shouldn't break.

i will do this

Is anyone assigned to this issue? I would like to participate if possible!

@aleoof Yes, please go ahead.

@JordanRosas No actually, give it a shot, I'll merge the most optimized code.

Hi @vinitshahdeo last night I ran your project fresh and and when I opened my devtools I got three errors

  • A bad HTTP response code (404) was received when fetching the script.
  • background.js:174 Uncaught TypeError: Cannot read property 'get' of undefined
    at setCookieCount (background.js:174)
    at background.js:180 (Don't mind the line numbers I had my refactored code sitting on top of the old code for reference)
  • GET http://127.0.0.1:8080/index.js net::ERR_ABORTED 404 (Not Found)

is there something I am missing on my end?

@JordanRosas It seems you opened index.html in chrome directly. It's a chrome extension so it's supposed to be installed locally. Please refer this.

@JordanRosas My bad. Please delete that file (_config.yml). It's not supposed to be there. This for GitHub pages.

@JordanRosas You're welcome!

@vinitshahdeo I have a PR up for some reason I couldnt add you as a reviewer?

@JordanRosas No problem. Thank you for the PR. I'll review and merge it soon.

You may look into a few more good first issues here which are up for grabs!