diff --git a/client/main.ts b/client/main.ts index 5cbb88502..26bd39df7 100644 --- a/client/main.ts +++ b/client/main.ts @@ -8,9 +8,20 @@ import '../both/methods/parties.methods'; import ionicSelector from 'ionic-selector'; +function setClass(css) { + if (!document.body.className) { + document.body.className = ""; + } + document.body.className += " " + css; +} + Meteor.startup(() => { if (Meteor.isCordova) { ionicSelector("app"); + setClass('mobile'); + } + else { + setClass('web'); } const platform = platformBrowserDynamic();