diff --git a/www/js/platform.js b/www/js/platform.js index 23675db..f229621 100644 --- a/www/js/platform.js +++ b/www/js/platform.js @@ -4,6 +4,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +var platform_type = ""; function initCordova() { // Handle back button to close things @@ -17,9 +18,12 @@ function initCordova() { StatusBar.styleLightContent(); } }, false); + + platform_type = "cordova"; } function initNW() { + platform_type = "nw"; // TODO: something clever with desktop integration } diff --git a/www/pages/home.html b/www/pages/home.html index e87468b..b47aec4 100644 --- a/www/pages/home.html +++ b/www/pages/home.html @@ -8,8 +8,13 @@