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

chore: fix typo #3320

Merged
merged 1 commit into from
Oct 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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