fix typo in desktop channel code

This was breaking some tests for me and throwing errors in phantomjs. @nchapman r?