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 @@
NotePost
+ {{#if showrefreshbtn}} + + refresh + + {{/if}} - + settings
diff --git a/www/routes.js b/www/routes.js index f333fc9..04ec3fa 100644 --- a/www/routes.js +++ b/www/routes.js @@ -22,7 +22,8 @@ var routes = [ reloadCurrent: (routeFrom.name == "home") }, { context: { - notecards: notecards + notecards: notecards, + showrefreshbtn: (platform_type != "cordova") } }); });