File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ const FloatingChatBot = () => {
10
10
const history = useHistory ( ) ;
11
11
const navigatePage = ( page , params ) => {
12
12
if ( page . startsWith ( "https" ) ) {
13
- window . open ( page ) ;
13
+ if ( isDesktop ) {
14
+ window . open ( page ) ;
15
+ } else {
16
+ window . location . href = page ;
17
+ }
14
18
} else {
15
19
if ( ! isDesktop ) {
16
20
params . openChat ( false ) ;
@@ -48,7 +52,7 @@ const FloatingChatBot = () => {
48
52
path : "process_options"
49
53
} ,
50
54
prompt_again : {
51
- message : "Do you need any other help?" ,
55
+ message : isDesktop ? "Do you need any other help?" : " ",
52
56
options : helpOptions ,
53
57
path : "process_options"
54
58
} ,
Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ const LandingPageChatBot = () => {
11
11
const history = useHistory ( ) ;
12
12
const navigatePage = ( page , params ) => {
13
13
if ( page . startsWith ( "https" ) ) {
14
- window . open ( page ) ;
14
+ if ( isDesktop ) {
15
+ window . open ( page ) ;
16
+ } else {
17
+ window . location . href = page ;
18
+ }
15
19
} else {
16
20
if ( ! isDesktop ) {
17
21
params . openChat ( false ) ;
@@ -92,7 +96,7 @@ const LandingPageChatBot = () => {
92
96
path : "process_options"
93
97
} ,
94
98
prompt_again : {
95
- message : "Do you need any other help?" ,
99
+ message : isDesktop ? "Do you need any other help?" : " ",
96
100
options : helpOptions ,
97
101
path : "process_options"
98
102
} ,
You can’t perform that action at this time.
0 commit comments