1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/development/build
Mark Stacey ba6509c7a3
Simplify handling of Segment keys (#9781)
It was getting rather complicated to keep track of which Segment keys
were set where, and under which name.

The build script now injects a key even in test environments, but it is
unused if `IN_TEST` is truthy. This should be functionally equivalent
to the old logic. I find this simpler mainly for two reasons: there is
one less intermediate variable to keep track of now, and the `IN_TEST`
check is now directly in the module where we're constructing the
`segment` instance, rather than being referenced at a distance in a
comment.

The old setup made it difficult to turn on metrics for specific e2e
tests as well, which will be done in a subsequent PR.
2020-11-03 17:11:24 -03:30
..
display.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
etc.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
index.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
manifest.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
scripts.js Simplify handling of Segment keys (#9781) 2020-11-03 17:11:24 -03:30
static.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
styles.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
task.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00