mobile: Fix desktop mode

(plugins would not be reachable)
This commit is contained in:
fkloft
2013-12-17 16:46:16 +01:00
parent f1aaad3c22
commit f2b3f3466e
4 changed files with 11 additions and 5 deletions

View File

@ -157,3 +157,9 @@ window.runOnSmartphonesAfterBoot = function() {
window.MAX_DRAWN_LINKS = 200;
window.MAX_DRAWN_FIELDS = 100;
}
window.useAndroidPanes = function() {
// isSmartphone is important to disable panes in desktop mode
return (typeof android !== 'undefined' && android && android.addPane && window.isSmartphone());
}