Skip to content

Commit dcff2f2

Browse files
authored
Fix javascript syntax
1 parent ba1ec19 commit dcff2f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/action_cable_overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ WebSocket is opened.
266266
createConsumer('https://ws.example.com/cable')
267267

268268
// Use a function to dynamically generate the URL
269-
createConsumer(getWebSocketURL)
269+
createConsumer(getWebSocketURL())
270270

271-
function getWebSocketURL {
271+
function getWebSocketURL() {
272272
const token = localStorage.get('auth-token')
273273
return `https://ws.example.com/cable?token=${token}`
274274
}

0 commit comments

Comments
 (0)