Skip to content

Commit e29f484

Browse files
committed
add defensive check for scriptlet feature
1 parent f8e0c32 commit e29f484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

injected/src/features/scriptlets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class Scriptlets extends ContentFeature {
2525
verbose: false,
2626
};
2727

28-
const scriptlets = this.getFeatureSetting('scriptlets');
28+
const scriptlets = this.getFeatureSetting('scriptlets') || [];
2929
for (const scriptlet of scriptlets) {
3030
source.name = scriptlet.name;
3131
source.args = Object.values(scriptlet.attrs);

0 commit comments

Comments
 (0)