@chat21/chat21-web-widget 5.0.89 → 5.0.90-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/package.json +1 -1
- package/src/app/app.component.ts +15 -11
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/app/app.component.ts
CHANGED
|
@@ -267,17 +267,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
267
267
|
this.disposeWidget()
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
270
|
-
|
|
271
|
-
if(this.g.isMobile && this.g.onPageChangeVisibilityMobile !== 'last'){
|
|
272
|
-
let isOpen = this.g.onPageChangeVisibilityMobile === 'open'? true: false
|
|
273
|
-
this.g.setIsOpen(isOpen)
|
|
274
|
-
this.appStorageService.setItem('isOpen', isOpen)
|
|
275
|
-
}
|
|
276
|
-
if(!this.g.isMobile && this.g.onPageChangeVisibilityDesktop !== 'last'){
|
|
277
|
-
let isOpen = this.g.onPageChangeVisibilityDesktop === 'open'? true: false
|
|
278
|
-
this.g.setIsOpen(isOpen)
|
|
279
|
-
this.appStorageService.setItem('isOpen', isOpen)
|
|
280
|
-
}
|
|
270
|
+
|
|
281
271
|
|
|
282
272
|
/**CHECK IF JWT IS IN URL PARAMETERS */
|
|
283
273
|
this.logger.debug('[APP-COMP] check if token is passed throw url: ', this.g.jwt);
|
|
@@ -433,6 +423,20 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
433
423
|
that.listenToWidgetClick()
|
|
434
424
|
}
|
|
435
425
|
|
|
426
|
+
|
|
427
|
+
//set status (open /close)
|
|
428
|
+
if(this.g.isMobile && this.g.onPageChangeVisibilityMobile !== 'last'){
|
|
429
|
+
let isOpen = this.g.onPageChangeVisibilityMobile === 'open'? true: false
|
|
430
|
+
this.g.setIsOpen(isOpen)
|
|
431
|
+
this.appStorageService.setItem('isOpen', isOpen)
|
|
432
|
+
}
|
|
433
|
+
if(!this.g.isMobile && this.g.onPageChangeVisibilityDesktop !== 'last'){
|
|
434
|
+
let isOpen = this.g.onPageChangeVisibilityDesktop === 'open'? true: false
|
|
435
|
+
this.g.setIsOpen(isOpen)
|
|
436
|
+
this.appStorageService.setItem('isOpen', isOpen)
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
|
|
436
440
|
} else if (state && state === AUTH_STATE_OFFLINE && !this.forceDisconnect) {
|
|
437
441
|
/** non sono loggato */
|
|
438
442
|
that.logger.info('[APP-COMP] OFFLINE - NO CURRENT USER AUTENTICATE: ');
|