Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

chore: replace window location on quick exit #276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/aselo-webchat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export const initWebchat = async () => {

FlexWebChat.Actions.addListener('afterRestartEngagement', (payload) => {
if (payload.exit) {
setTimeout(() => window.open('https://google.com', '_self'), 1000);
setTimeout(() => window.location.replace('https://google.com'), 1000);
}
});

Expand Down