File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< head >
4
4
< script src ="/htmlimports.js "> </ script >
5
- < title > Gleap</ title >
5
+ < title > Gleap Demo </ title >
6
6
< meta charset ="UTF-8 " />
7
7
< meta name ="viewport " content ="width=device-width, initial-scale=1 " />
8
8
< link rel ="preconnect " href ="https://fonts.gstatic.com " />
39
39
.header {
40
40
width : 100% ;
41
41
min-height : 500px ;
42
- background-color : # ffff3f ;
42
+ background-color : # 03fff5 ;
43
43
}
44
44
45
45
.header-container {
85
85
86
86
.logo i {
87
87
font-size : 50px ;
88
+ color : # 333 ;
88
89
}
89
90
90
91
.head-image {
128
129
font-size : 16px ;
129
130
font-weight : 600 ;
130
131
color : rgb (255 , 255 , 255 );
131
- background-color : # 55a630 ;
132
+ background-color : # 485BFF ;
132
133
border-style : solid;
133
134
border-width : 0px ;
134
135
border-radius : 10px ;
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ import Session from "./Session";
4
4
5
5
export default class AutoConfig {
6
6
static run = ( ) => {
7
- /* const session = Session.getInstance();
7
+ const session = Session . getInstance ( ) ;
8
8
const cachedConfig = loadFromGleapCache ( `config-${ session . sdkKey } ` ) ;
9
9
if ( cachedConfig ) {
10
10
AutoConfig . applyConfig ( cachedConfig , false ) ;
11
11
AutoConfig . loadConfigFromServer ( true ) . catch ( function ( e ) { } ) ;
12
12
return Promise . resolve ( ) ;
13
- }*/
13
+ }
14
14
15
15
return AutoConfig . loadConfigFromServer ( false ) ;
16
16
} ;
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ export default class Session {
77
77
// Optionally update UI.
78
78
const userNameInfo = document . querySelector ( "#bb-user-name" ) ;
79
79
if ( userNameInfo ) {
80
- userNameInfo . textContent = session . name ? session . name : "" ;
80
+ userNameInfo . textContent =
81
+ session . name && Gleap . getInstance ( ) . showUserName ? session . name : "" ;
81
82
}
82
83
83
84
this . notifySessionReady ( ) ;
@@ -138,9 +139,7 @@ export default class Session {
138
139
if ( this . session . userId . toString ( ) !== userId . toString ( ) ) {
139
140
return true ;
140
141
}
141
- } catch ( exp ) {
142
- console . log ( "Gleap: warn" ) ;
143
- }
142
+ } catch ( exp ) { }
144
143
145
144
if ( userData ) {
146
145
var userDataKeys = Object . keys ( userData ) ;
You can’t perform that action at this time.
0 commit comments