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

@ -30,7 +30,7 @@ interface HandlerRegister {
* moment this file is evaluated which could be
* before the config is set.
*/
export const shoudUseCloseWatcher = () =>
export const shouldUseCloseWatcher = () =>
config.get('experimentalCloseWatcher', false) && win !== undefined && 'CloseWatcher' in win;
/**
@ -109,7 +109,7 @@ export const startHardwareBackButton = () => {
* backbutton event otherwise we may get duplicate
* events firing.
*/
if (shoudUseCloseWatcher()) {
if (shouldUseCloseWatcher()) {
let watcher: CloseWatcher | undefined;
const configureWatcher = () => {