mobile: Fix desktop mode

(plugins would not be reachable)
This commit is contained in:
fkloft
2013-12-17 16:46:16 +01:00
committed by Philipp Schaefer
parent 89371f732d
commit 7dd4c27c26
4 changed files with 11 additions and 5 deletions

View File

@ -170,3 +170,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());
}