This repository was archived by the owner on Oct 3, 2025. It is now read-only.
Repository navigation
Less global variables to reduce name clashing with other add-ons - #53
Merged
Merged
Conversation
snipsnipsnip
force-pushed
the
less-globals
branch
3 times, most recently
from
December 22, 2019 14:51
2018c4c to
db7fad6
Compare
Some variable name (`nsPreferences` in my case) used by External Editor are also used by other add-ons and causing problems. Wrap in a module-like thing to reduce chance of name clash.
snipsnipsnip
force-pushed
the
less-globals
branch
from
December 24, 2019 14:10
9b8d4d0 to
7f58df0
Compare
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Some variable name used by External Editor are also used by other add-ons and causing problem.
In my case,
nsPreferenceswas clashing with https://github.com/Meatian/confirm-address/.Wrap in a module-like object to reduce chance of name clashing.
I tried to use modern nice way of namespacing (like
import,require,ChromeUtils.import), but all of them required some effort to migrate. It's likely that I need to do major refactoring as part of Web Extension Experiments conversion for Thunderbird 78 either way, so I kept current plain old JS for now.