File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- // https://lib.presenta.cc v1.0.8 - BSD-3-Clause License - Copyright 2021 Fabio Franchino
1+ // https://lib.presenta.cc v1.0.9 - BSD-3-Clause License - Copyright 2021 Fabio Franchino
22( function ( global , factory ) {
33 typeof exports === 'object' && typeof module !== 'undefined' ? module . exports = factory ( ) :
44 typeof define === 'function' && define . amd ? define ( factory ) :
55 ( global = typeof globalThis !== 'undefined' ? globalThis : global || self , global . Presenta = factory ( ) ) ;
66} ) ( this , ( function ( ) { 'use strict' ;
77
8- var version = "1.0.8 " ;
8+ var version = "1.0.9 " ;
99
1010 function styleInject ( css , ref ) {
1111 if ( ref === void 0 ) ref = { } ;
@@ -1158,7 +1158,6 @@ window._sdpcallbackfunc()
11581158 op,
11591159 value
11601160 } = mod ;
1161- console . log ( key , config . _sceneConfig . otherParams ) ;
11621161 const prop = key . split ( '.' ) . reduce ( ( o , i ) => o [ i ] , config ) ;
11631162 let pass = true ;
11641163
@@ -1336,6 +1335,9 @@ window._sdpcallbackfunc()
13361335 if ( config . font ) {
13371336 fetch ( config . font ) . then ( res => {
13381337 setTimeout ( compute ) ;
1338+ } ) . catch ( err => {
1339+ console . log ( 'error on preload font' , err ) ;
1340+ setTimeout ( compute ) ;
13391341 } ) ;
13401342 } else {
13411343 setTimeout ( compute ) ;
You can’t perform that action at this time.
0 commit comments