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

Commit 3218067

Browse files
authoredOct 12, 2020
chore: fix typo (#3320)
1 parent 639d71f commit 3218067

File tree

1 file changed

+3
-3
lines changed
  • examples/browser-exchange-files/public

1 file changed

+3
-3
lines changed
 

‎examples/browser-exchange-files/public/app.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async function start () {
107107
}, 10000)
108108

109109
try {
110-
await subscribeToWorkpsace()
110+
await subscribeToWorkspace()
111111
} catch (err) {
112112
err.message = `Failed to subscribe to the workspace: ${err.message}`
113113
return onError(err)
@@ -140,7 +140,7 @@ const messageHandler = (message) => {
140140
}
141141
}
142142

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

156156
workspace = location.hash.replace(/^#/, '')
157-
await subscribeToWorkpsace()
157+
await subscribeToWorkspace()
158158
}
159159

160160
const publishHash = (hash) => {

0 commit comments

Comments
 (0)