Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: fix typo (#3320)
Browse files Browse the repository at this point in the history
  • Loading branch information
bconnorwhite authored Oct 12, 2020
1 parent 639d71f commit 3218067
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/browser-exchange-files/public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async function start () {
}, 10000)

try {
await subscribeToWorkpsace()
await subscribeToWorkspace()
} catch (err) {
err.message = `Failed to subscribe to the workspace: ${err.message}`
return onError(err)
Expand Down Expand Up @@ -140,7 +140,7 @@ const messageHandler = (message) => {
}
}

const subscribeToWorkpsace = async () => {
const subscribeToWorkspace = async () => {
await node.pubsub.subscribe(workspace, messageHandler)
const msg = `Subscribed to workspace '${workspace}'`
$logs.innerHTML = msg
Expand All @@ -154,7 +154,7 @@ const workspaceUpdated = async () => {
$fileHistory.innerHTML = ''

workspace = location.hash.replace(/^#/, '')
await subscribeToWorkpsace()
await subscribeToWorkspace()
}

const publishHash = (hash) => {
Expand Down

0 comments on commit 3218067

Please sign in to comment.