Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 2a52d42

Browse files
authored
Merge pull request #63 from pierrekamel5/master
show webview in same page in pwa if it is in a popup window
2 parents 481b67c + 5e6d0db commit 2a52d42

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

src/widget/widget.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ const render = (content) => {
2424
if(openWindow){
2525
setTimeout(() => buildfire.navigation.goBack(), 750);
2626

27-
if(content.view === viewOptions.POPUP)
28-
buildfire.navigation.openWindow(content.url, "_blank");
27+
if(content.view === viewOptions.POPUP){
28+
if(flags.isWeb){
29+
renderiFrame({url: content.url, isIOS: flags.isIOS});
30+
return;
31+
} else {
32+
buildfire.navigation.openWindow(content.url, "_blank");
33+
}
34+
}
2935
else
3036
buildfire.navigation.openWindow(content.url, "_system");
3137

@@ -36,9 +42,15 @@ const render = (content) => {
3642
return;
3743
}
3844
if(displaySuccessMessage){
39-
window.document.getElementById('successMessage').style.display = 'block';
40-
window.document.getElementById('targetUrl').href = content.url;
41-
return;
45+
if(flags.isWeb){
46+
renderiFrame({url: content.url, isIOS: flags.isIOS});
47+
return;
48+
} else {
49+
window.document.getElementById('successMessage').style.display = 'block';
50+
window.document.getElementById('targetUrl').href = content.url;
51+
return;
52+
}
53+
4254
}
4355
};
4456

0 commit comments

Comments
 (0)