Skip to content

Commit

Permalink
use correct variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion committed Apr 8, 2020
1 parent b23138b commit 1639518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ async function getPolyfills(options_) {
or the browser version is within the semver range specified in the features config.toml file.
*/
function removeFeature(featureName) {
features.delete(featureName);
featureNames.delete(featureName);
if (targetedFeatures[featureName]) {
delete targetedFeatures[featureName];
}
}

function addFeature(featureName, featureFlags, featureProperties) {
targetedFeatures[featureName] = Object.assign({}, featureFlags, featureProperties);
features.add(featureName);
featureNames.add(featureName);
}

for (const featureName of featureNames) {
Expand Down

0 comments on commit 1639518

Please sign in to comment.