stylish-userstyles / stylish-chrome

Stylish extension for Chrome and Chrome-like things
GNU General Public License v3.0
185 stars 53 forks source link

Fixing syntax errors #191

Closed DecentM closed 7 years ago

DecentM commented 7 years ago

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.