The purpose of this being to load different css files depending on which Browser they are using.
I believe that the javascript equivalent is:
if(document.navigator.userAgent.includes(“Chrome”))
The purpose of this being to load different css files depending on which Browser they are using.
I believe that the javascript equivalent is:
if(document.navigator.userAgent.includes(“Chrome”))
Hi. Is there a question? Are you referring to XWiki?
I am struggling with the Xwiki syntax to get the browser the user is using.
I am building a quiz inside of Xwiki and for an unexplained reason, Edge is displaying the CSS quite differently to Chrome. I’ve attempted to compensate for this using different methods such as ‘%’, ‘em’, ‘vh’ etc but these havent worked because the different browsers believe that the screens are different sizes, so they display the CSS differently regardless of how I try to ocmpensate. I have used online 'whats my screen size sites; and Edge thinks that the screen is almost 2 inches larger than Chrome, which is weird as they are pretty similar int he way that they work.
So, I am attempting to use Xwiki code to check the browser at load time, to change the stylesheet that is loaded to the ones that is most suited