chore: fix typo with close watcher const (#29146)

The variable was spelled incorrectly.
This commit is contained in:
Liam DeBeasi
2024-03-12 17:52:38 -04:00
committed by GitHub
parent c0f5e5ebc0
commit 487ffca11e
4 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
import { doc } from '@utils/browser';
import type { BackButtonEvent } from '@utils/hardware-back-button';
import { shoudUseCloseWatcher } from '@utils/hardware-back-button';
import { shouldUseCloseWatcher } from '@utils/hardware-back-button';
import { config } from '../global/config';
import { getIonMode } from '../global/ionic-global';
@ -428,7 +428,7 @@ const connectListeners = (doc: Document) => {
* this behavior will be handled via the ionBackButton
* event.
*/
if (!shoudUseCloseWatcher()) {
if (!shouldUseCloseWatcher()) {
doc.addEventListener('keydown', (ev) => {
if (ev.key === 'Escape') {
const lastOverlay = getPresentedOverlay(doc);