Both profile-desktop and profile-phone in hybrid Phonegap app

1
We run a mobile app with dedicated styling based on the profile-phone class. When we run the app from the devices browser, everything works fine and the body element has a class profile-phone. When the app is packaged and build with phonegap, we found out that the profile-dekstop class is added to the body element as well, is this expected behaviour or is this a bug?  
asked
1 answers
1

I think it's a bug. If you are using single sign-on (SSO), It can be solved by adding document.body.classList.remove("profile-desktop"); to the custom SSO javascript:

...
var closeWindow = function() {
	samlWindow.close();
	if (window.mx.afterLoginAction) {
		window.mx.afterLoginAction();
	}
};
authPromise.then(closeWindow, closeWindow);
document.body.classList.remove("profile-desktop");

(based on info from Bart Luyten)

answered