Skip to content

Commit

Permalink
fix(WslinkImageStream): Fix issue switching between local and remote …
Browse files Browse the repository at this point in the history
…rendering

By relaxing this equality test, the string "317" will compare equal to the number 317 and
vice-versa, which is the desired effect in this case.
  • Loading branch information
scottwittenburg committed Aug 22, 2018
1 parent fb43200 commit 93caa02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/IO/WebSocket/WslinkImageStream/index.js
Expand Up @@ -112,7 +112,9 @@ function wslinkImageStream(publicAPI, model) {

publicAPI.viewChanged = (data) => {
const msg = data[0];
if (!msg || !msg.image || msg.id !== model.view_id) return;
/* eslint-disable eqeqeq */
if (!msg || !msg.image || msg.id != model.view_id) return;
/* eslint-enable eqeqeq */
const imgBlob = new Blob([msg.image], {
type: model.mimeType,
});
Expand Down

0 comments on commit 93caa02

Please sign in to comment.