Skip to content

Commit

Permalink
🐛 fix typecheck for function argument injection
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeldesu committed Dec 30, 2022
1 parent 6c45437 commit e8aa742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moduleraid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class ModuleRaid {
* @internal
*/
private fillModules(): void {
if (window[this.entrypoint] === 'function') {
if (typeof window[this.entrypoint] === 'function') {
this.functionArguments.forEach((argument, index) => {
try {
if (this.modules && Object.keys(this.modules).length > 0) return
Expand Down

0 comments on commit e8aa742

Please sign in to comment.