Any suggestions on how to detect open solo mode from within a shiny app?
I aim to hide a navigation button with shiny::conditionalPanel based on whether it's in open solo or not. I've tried hooking into session$clientData$url_pathname but it doesn't change even when the browser navigation bar path is different for the same document.
I can't see any documented environment variables which I could hook into, though I still need to try an env dump just to be sure.
Yes I'm just experimenting at the moment, but the button would navigate to a relative location.href via 'onclick'. Currently it takes users back to the dashboard view, but it's behind a proxy so I could turn that into anything I liked.
The relative href doesn't work within the dashboard view, so I was planning to hide it to prevent obvious errors.
I will try to package this up into something more usable within R, but it should be do-able (so long as iframe origin stuff doesn't block it) with window.location.href == window.top.location.href)