Add FeaturesController for *.js and context for *.jsx
[MAILPOET-2008]
This commit is contained in:
7
assets/js/src/features_controller.js
Normal file
7
assets/js/src/features_controller.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const FeaturesController = (config) => ({
|
||||
isSupported: (feature) => {
|
||||
return config[feature] || false;
|
||||
},
|
||||
});
|
||||
|
||||
export default FeaturesController;
|
Reference in New Issue
Block a user