Automatically handle the "showConfiguration" and "webviewclosed" events + other minor code cleanup

This commit is contained in:
Keegan
2016-02-16 17:05:42 -08:00
parent 24bfc54991
commit 56eb666ee2
11 changed files with 144 additions and 51 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ var returnTo = window.returnTo || 'pebblejs://close#';
var customFn = window.customFn || function() {};
var clayComponents = window.clayComponents || {};
var platform = window.navigator.userAgent.match(/Android/) ? 'android' : 'ios';
var platform = window.navigator.userAgent.match(/android/i) ? 'android' : 'ios';
document.documentElement.classList.add('platform-' + platform);
// Register the passed components