Skip to content

Commit

Permalink
chore: rename file and function
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Apr 25, 2023
1 parent e0045c3 commit ca909b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/PluginWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import debounce from 'lodash-es/debounce'
import PropTypes from 'prop-types'
import React, { useEffect, useLayoutEffect, useState } from 'react'
import { VisualizationPlugin } from './components/VisualizationPlugin/VisualizationPlugin.js'
import { getPWAInstallationState } from './modules/getInstallationStatus.js'
import { getPWAInstallationStatus } from './modules/getPWAInstallationStatus.js'

const LoadingMask = () => {
return (
Expand Down Expand Up @@ -87,7 +87,7 @@ const PluginWrapper = () => {

// Get & send PWA installation status now, and also prepare to send
// future updates (installing/ready)
getPWAInstallationState({
getPWAInstallationStatus({
onStateChange: sendInstallationStatus,
}).then(sendInstallationStatus)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function handleInstallingWorker({ installingWorker, onStateChange }) {
*
* Returns either READY, INSTALLING, or `null` for not installed/won't install
*/
export async function getPWAInstallationState({ onStateChange }) {
export async function getPWAInstallationStatus({ onStateChange }) {
if (!navigator.serviceWorker) {
// Nothing to do here
return null
Expand Down

0 comments on commit ca909b6

Please sign in to comment.