File tree Expand file tree Collapse file tree 6 files changed +21571
-12
lines changed
Expand file tree Collapse file tree 6 files changed +21571
-12
lines changed Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -199,15 +199,17 @@ class Gleap {
199199
200200 const sessionInstance = Session . getInstance ( ) ;
201201 sessionInstance . sdkKey = sdkKey ;
202- sessionInstance . setOnSessionReady ( ( ) => {
202+ sessionInstance . setOnSessionReady ( function ( ) {
203203 // Run auto configuration.
204- AutoConfig . run ( function ( config , soft ) {
205- Gleap . applyConfig ( config , soft ) ;
206- } )
207- . then ( function ( ) {
208- instance . postInit ( ) ;
204+ setTimeout ( function ( ) {
205+ AutoConfig . run ( function ( config , soft ) {
206+ Gleap . applyConfig ( config , soft ) ;
209207 } )
210- . catch ( function ( err ) { } ) ;
208+ . then ( function ( ) {
209+ instance . postInit ( ) ;
210+ } )
211+ . catch ( function ( err ) { } ) ;
212+ } , 0 ) ;
211213 } ) ;
212214 sessionInstance . startSession ( ) ;
213215 }
@@ -399,7 +401,9 @@ class Gleap {
399401 if ( flowConfig . buttonLogo && flowConfig . buttonLogo . length > 0 ) {
400402 this . setButtonLogoUrl ( flowConfig . buttonLogo ) ;
401403 }
402- } catch ( e ) { }
404+ } catch ( e ) {
405+ console . log ( e ) ;
406+ }
403407 }
404408
405409 postInit ( ) {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ module.exports = {
2020 clean : true ,
2121 } ,
2222 optimization : {
23- minimize : true ,
23+ minimize : false ,
2424 minimizer : [
2525 new TerserPlugin ( {
2626 terserOptions : {
You can’t perform that action at this time.
0 commit comments