-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
The Error constructor parameter is incorrect here:
Line 1127 in db9b5eb
| throw new Error("Unsupported an advertisement type: ", adType); |
According to MDN the second parameter for the Error constructor is an optional filename: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Error
I think the line should say:
throw new Error("Unsupported an advertisement type: " + adType);
It seems that in other places of the code (like preloadAd) it is correct (although to be precise it's missing the whitespace after the colon):
Line 1314 in db9b5eb
| throw new Error("Unsupported an advertisement type:" + adType); |
Metadata
Metadata
Assignees
Labels
No labels