menu-toggle-util.js 370 B

123456789101112
  1. /*!
  2. * (C) Ionic http://ionicframework.com - MIT License
  3. */
  4. import { m as menuController } from './index5.js';
  5. // Given a menu, return whether or not the menu toggle should be visible
  6. const updateVisibility = async (menu) => {
  7. const menuEl = await menuController.get(menu);
  8. return !!(menuEl && (await menuEl.isActive()));
  9. };
  10. export { updateVisibility as u };