-
Notifications
You must be signed in to change notification settings - Fork 7
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
Enhancement/ES6 Refactor #10
Merged
mavroudisv
merged 17 commits into
ubeacsec:master
from
ppseprus:enhancement/es6-refactor
May 9, 2017
Merged
Enhancement/ES6 Refactor #10
mavroudisv
merged 17 commits into
ubeacsec:master
from
ppseprus:enhancement/es6-refactor
May 9, 2017
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Unify indentation. - Remove unnecessary comments. - Remove unused code.
- Auto format JSON file. - Remove comments as they are not allowed in a JSON file.
https://stackoverflow.com/questions/359494/which-equals-operator-vs-should-be-used-in-javascript-comparisons "JavaScript has two sets of equality operators: === and !==, and their evil twins == and !=. The good ones work the way you would expect. If the two operands are of the same type and have the same value, then === produces true and !== produces false. The evil twins do the right thing when the operands are of the same type, but if they are of different types, they attempt to coerce the values. the rules by which they do that are complicated and unmemorable."
- If a variable is boolean, you don't need an "if.. else if..", "if.. else.. is enough. - No need to use the `=== true` or `=== false`; the value will be truth or falsy.
"I don’t use `var` in ES6. There is value in block scope for loops, but I can’t think of a situation where I’d prefer `var` over `let`." "`var` is now the weakest signal available when you define a variable in JavaScript." Eric Elliot https://medium.com/javascript-scene/javascript-es6-var-let-or-const-ba58b8dcde75
The "activeTab" is needed for inserting scripts into the pages.
Merge the intercept.js into the content.js and rewrite the code.
This was referenced May 7, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.