Skip to content

Commit

Permalink
Merge pull request #17 from dahabi/master
Browse files Browse the repository at this point in the history
Fix HTML5 Version
  • Loading branch information
abuturla authored Nov 20, 2017
2 parents b4fe9ed + dfb3574 commit d48a77b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions widget/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@
}
buildfire.spinner.hide();
buildfire.getContext(function (err, context) {
if (context.device.platform != "web") {
if (context.device.platform != "web" ) {
buildfire.navigation.openWindow(content.facebookId, "_blank");

setTimeout(function () {
buildfire.navigation.goBack();
},200);
} else {
document.querySelector(".link-verified").style.display = "block";
if( buildfire.context.liveMode=="0")//CP
document.querySelector(".link-verified").style.display = "block";
else//HTML5 Version
window.open(content.facebookId, "_blank");
}
});
}
Expand Down

0 comments on commit d48a77b

Please sign in to comment.