From dfb3574a84ac1a5a0ae57ff8052ffec8e8d0e85e Mon Sep 17 00:00:00 2001 From: alaa Date: Sun, 12 Nov 2017 22:20:45 +0200 Subject: [PATCH] Fix HTML5 Version --- widget/index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/widget/index.html b/widget/index.html index d6d2b4d..92d7e06 100644 --- a/widget/index.html +++ b/widget/index.html @@ -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"); } }); }