Skip to content

Commit ca909b6

Browse files
committed
chore: rename file and function
1 parent e0045c3 commit ca909b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/PluginWrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import debounce from 'lodash-es/debounce'
55
import PropTypes from 'prop-types'
66
import React, { useEffect, useLayoutEffect, useState } from 'react'
77
import { VisualizationPlugin } from './components/VisualizationPlugin/VisualizationPlugin.js'
8-
import { getPWAInstallationState } from './modules/getInstallationStatus.js'
8+
import { getPWAInstallationStatus } from './modules/getPWAInstallationStatus.js'
99

1010
const LoadingMask = () => {
1111
return (
@@ -87,7 +87,7 @@ const PluginWrapper = () => {
8787

8888
// Get & send PWA installation status now, and also prepare to send
8989
// future updates (installing/ready)
90-
getPWAInstallationState({
90+
getPWAInstallationStatus({
9191
onStateChange: sendInstallationStatus,
9292
}).then(sendInstallationStatus)
9393

src/modules/getInstallationStatus.js renamed to src/modules/getPWAInstallationStatus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function handleInstallingWorker({ installingWorker, onStateChange }) {
2020
*
2121
* Returns either READY, INSTALLING, or `null` for not installed/won't install
2222
*/
23-
export async function getPWAInstallationState({ onStateChange }) {
23+
export async function getPWAInstallationStatus({ onStateChange }) {
2424
if (!navigator.serviceWorker) {
2525
// Nothing to do here
2626
return null

0 commit comments

Comments
 (0)