This message was deleted.
# _general
s
This message was deleted.
a
This happens to us every so often w/ both Chrome and Edge and always ends up being a browser update that "forgot" about workspace so just need to instruct people to remind the browser again (click the name in upper right, change receiver and let it detect). annoying but only way around it we've found
⤴️ 1
r
I too see this. I haven't dug into what is triggered the HTML5 aka light version yet. It happens very random.
d
Tried controlling this a while ago as it's mostly just done with a cookie. I can't remember all of the details of what I worked up at the moment, but if needed I could probably go dig it all up. To stop the issue, I resorted to using two different stores though. One for the majority of people that use Workspace app and a lightmode for the HTML5 people.
r
If you have some spare time, I would be interested in it. If not no biggie.
d
I'll see what I can dig up. I'll let you know what I find "soon".
r
Thanks man
d
Here is some code that I put in StoreFrontWeb\custom\script.js.
$('.changeclient-currently-using.detail-text').html("If you are on a computer where you cannot install applications, for example a hotel kiosk, you may use the \"light\" version of Citrix to access your ProZone applications.  Note that some features of your applications may not function properly in Light mode");
$("#procirrus-changeclient-use-full-version").on("click", function() {
//alert( "Handler for .click() called." );
var csrfToken = Cookies.get("CsrfToken");
Cookies.set("CtxsUserPreferredClient", "Native", { expires: 400, path: csrfToken.path });
$( "#procirrus-changeclient-use-full-version" ).hide();
$( "#menuConnectBtn" ).hide();
$( "#menuDisconnectBtn" ).hide();
return false;
});
$(".procirrus-use-full-version").html("You are currently in light mode which reduces your functionality. It is intended for use when working from a computer where you can't install the ProZone, like a hotel kiosk. If you are in this mode by accident, please click anywhere in this message to return to normal mode.")
Some commands in the ADC, not 100% sure if all of these were required or some were just for testing... add rewrite action InsertPreferredClient insert_http_header Set-Cookie "\"CtxsUserPreferredClient=Native; expires=\" + SYS.TIME.ADD(33557600 ).TYPECAST_TIME_AT" add rewrite action NOTIFY_LIGHTMODE_STOREFRONT1 insert_before_all "HTTP.RES.BODY(100000).SET_TEXT_MODE(ignorecase)" "\"<div>test</div>\"" -search "text(\"html\")" add rewrite action NOTIFY_LIGHTMODE_STOREFRONT3 insert_before_all "HTTP.RES.BODY(100000).SET_TEXT_MODE(ignorecase)" "\"<div>test</div>\"" -pattern q/"<section class=\"scrollable storeViewSection\">"/ add rewrite action NOTIFY_LIGHTMODE_STOREFRONT5 replace_all "HTTP.RES.BODY(50000000)" "\"procirrus\"" -search "text(\"scrollable\")" add rewrite action NOTIFY_LIGHTMODE_STOREFRONT2 insert_before "HTTP.RES.BODY(100000).BEFORE_STR(\"scrollable\")" "\"procirrus \"" add rewrite action NOTIFY_LIGHTMODE_STOREFRONT4 insert_before_all "HTTP.RES.BODY(100000000).SET_TEXT_MODE(ignorecase)" q{"<div id=\"procirrus-changeclient-use-full-version\"><a class=\"procirrus-use-full-version web-screen-link\"></a></div>"} -search q/text("<div class=\"store-apps-container\">")/ add rewrite action NOTIFY_LIGHTMODE_STOREFRONT insert_after_all "HTTP.RES.BODY(100000000).SET_TEXT_MODE(ignorecase)" q{"<div id=\"procirrus-changeclient-use-full-version\"><a class=\"procirrus-use-full-version web-screen-link\"></a></div>"} -search q/text("<section class=\"scrollable storeViewSection\">")/ add rewrite policy NOTIFY_IF_LIGHTMODE "IS_RECEIVER_CONNECTION.NOT&&HTTP.REQ.COOKIE.NAMES.CONTAINS(\"CtxsUserPreferredClient\").NOT&&HTTP.RES.HEADER(\"Content-Type\").CONTAINS(\"text/html\")" NOTIFY_LIGHTMODE_STOREFRONT add responder action RESPONDER_REDIRECT_LIGHTMODE redirect "\"https://lightmode.procirrus.com\"" -responseStatusCode 301
r
Thanks for the info man
👍 1