mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[PCCompat > Webpack] Fix last commit not erroring if displayName was not defined
This commit is contained in:
parent
865a105079
commit
5fe0bdc257
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ module.exports = {
|
|||
|
||||
getModuleByDisplayName: (displayName) => {
|
||||
// Use custom find instead of GM's findByDisplayName as PC's is case insensitive
|
||||
return goosemodScope.webpackModules.find((x) => 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)
|
||||
|
|
Loading…
Reference in a new issue