File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed
2nd-gen/packages/swc/.storybook Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 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 ) ;
You can’t perform that action at this time.
0 commit comments