This PR fixes a lot of syntax errors without changing functionality.
A lot of overlooks were made in the code, like not using closing semicolons, reusing variable names and general messiness throughout all logic (which bounces back and forth, for example in popup-installed.js and storage.js).
Functions are defined in different ways even in just one file, variables are used out of scope, all of which leads to general confusion when reading.
Rethinking the layout of the extension as well as the logic would make it more easily maintainable and scalable.
This PR fixes a lot of syntax errors without changing functionality. A lot of overlooks were made in the code, like not using closing semicolons, reusing variable names and general messiness throughout all logic (which bounces back and forth, for example in popup-installed.js and storage.js). Functions are defined in different ways even in just one file, variables are used out of scope, all of which leads to general confusion when reading. Rethinking the layout of the extension as well as the logic would make it more easily maintainable and scalable.
I recommend linting any code before committing.