Please correct mentioned doc of Zoom Apps JSSDK

Please correct below code sample in Zoom Apps JSSDK doc

zoomSdk.removeVirtualBackground().then(function() => {
  // background was successfully removed
})
.catch(function(error) => {
  // there was an error removing the virtual background
})

In the above code block either use the function keyword or arrow operator inside callbacks like below

Callbacks with the function keyword

zoomSdk.removeVirtualBackground().then(function() {
  // background was successfully removed
})
.catch(function(error)  {
  // there was an error removing the virtual background
})

Callbacks with arrow operator

zoomSdk.removeVirtualBackground().then(() => {
  // background was successfully removed
})
.catch((error) => {
  // there was an error removing the virtual background
})

Here is the doc link.

2 Likes

Thanks for bringing this up! I created a ticket with our documentation team to have this fixed (DEVELOPERS-3809)