Skip to content

Commit a0effd9

Browse files
fix: remove events object in preview head
1 parent 7d63074 commit a0effd9

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

2nd-gen/packages/swc/.storybook/preview-head.html

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,18 @@
4444
loading: function () {
4545
window.FontsLoading = true;
4646
},
47-
events: {
48-
active: function () {
49-
window.FontsLoading = false;
50-
window.currentKitId = this.kitId;
51-
console.log(`Font loaded [id: ${this.kitId}]`);
52-
53-
// Fire a custom event to indicate the Adobe Fonts have loaded
54-
document.dispatchEvent(
55-
new CustomEvent('typekit-loaded', {
56-
detail: { kitId: this.kitId },
57-
})
58-
);
59-
},
60-
}
47+
active: function () {
48+
window.FontsLoading = false;
49+
window.currentKitId = this.kitId;
50+
console.log(`Font loaded [id: ${this.kitId}]`);
51+
52+
// Fire a custom event to indicate the Adobe Fonts have loaded
53+
document.dispatchEvent(
54+
new CustomEvent('typekit-loaded', {
55+
detail: { kitId: this.kitId },
56+
})
57+
);
58+
},
6159
});
6260
} catch (e) {
6361
console.log('Typekit failed to load:', e);

0 commit comments

Comments
 (0)