Skip to content

Commit e8aa742

Browse files
committed
🐛 fix typecheck for function argument injection
1 parent 6c45437 commit e8aa742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/moduleraid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export class ModuleRaid {
170170
* @internal
171171
*/
172172
private fillModules(): void {
173-
if (window[this.entrypoint] === 'function') {
173+
if (typeof window[this.entrypoint] === 'function') {
174174
this.functionArguments.forEach((argument, index) => {
175175
try {
176176
if (this.modules && Object.keys(this.modules).length > 0) return

0 commit comments

Comments
 (0)