codevise/pageflow

View on GitHub
package/src/frontend/browser/facebook.js

Summary

Maintainability
A
0 mins
Test Coverage
import {browser} from './browser';
import {agent} from './Agent';
// Facebook app displays a toolbar at the bottom of the screen on iOS
// phone which hides parts of the browser viewport. Normally this is
// hidden once the user scrolls, but since there is no native
// scrolling in Pageflow, the bar stays and hides page elements like
// the slim player controls.
browser.feature('facebook toolbar', function(has) {
  return has.all(has('iphone platform'),
                 agent.matchesFacebookInAppBrowser());
});