[PCCompat > Webpack] Fix not actually calling toLowerCase
This commit is contained in:
parent
5fe0bdc257
commit
9bcf6d59f8
|
@ -28,7 +28,7 @@ module.exports = {
|
||||||
|
|
||||||
getModuleByDisplayName: (displayName) => {
|
getModuleByDisplayName: (displayName) => {
|
||||||
// Use custom find instead of GM's findByDisplayName as PC's is case insensitive
|
// Use custom find instead of GM's findByDisplayName as PC's is case insensitive
|
||||||
return goosemodScope.webpackModules.find((x) => x.displayName && x.displayName.toLowerCase() === displayName.toLowerCase);
|
return goosemodScope.webpackModules.find((x) => x.displayName && x.displayName.toLowerCase() === displayName.toLowerCase());
|
||||||
},
|
},
|
||||||
|
|
||||||
...goosemodScope.webpackModules.common // Export common modules (eg: React)
|
...goosemodScope.webpackModules.common // Export common modules (eg: React)
|
||||||
|
|
Loading…
Reference in New Issue