Skip to content

Commit

Permalink
Merge pull request #38 from AlexKvazos/master
Browse files Browse the repository at this point in the history
Fix goBack
  • Loading branch information
abuturla authored Oct 10, 2018
2 parents 95fa8ad + c25f347 commit e65e3a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widget/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ const render = (content) => {

const handleWindow = (openWindow, displayIniFrame, displaySuccessMessage) => {
if(openWindow){
setTimeout(() => buildfire.navigation.goBack(), 750);

if(content.view === viewOptions.POPUP)
buildfire.navigation.openWindow(content.url, "_blank");
else
buildfire.navigation.openWindow(content.url, "_system");

setTimeout(() => buildfire.navigation.goBack(), 750);
return;
}
if(displayIniFrame){
Expand Down

0 comments on commit e65e3a8

Please sign in to comment.