Skip to content

Commit

Permalink
Fix for addSource()
Browse files Browse the repository at this point in the history
The css selector used to get the options by value were not quoted and therefore would break depending on the `source.id`.
  • Loading branch information
styfle committed Apr 13, 2016
1 parent 9b5dd92 commit d64adec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop-capture/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function addSource(source) {
value: source.id.replace(":", ""),
text: source.name
}));
$('select option[value=' + source.id.replace(":", "") + ']').attr('data-img-src', source.thumbnail.toDataUrl());
$('select option[value="' + source.id.replace(":", "") + '"]').attr('data-img-src', source.thumbnail.toDataUrl());
refresh();
}

Expand Down

0 comments on commit d64adec

Please sign in to comment.