From d64adec9a4269a1809115811736350a1e4469635 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 13 Apr 2016 10:50:50 -0400 Subject: [PATCH] Fix for addSource() The css selector used to get the options by value were not quoted and therefore would break depending on the `source.id`. --- desktop-capture/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-capture/app.js b/desktop-capture/app.js index f2d7aca..7d5507d 100644 --- a/desktop-capture/app.js +++ b/desktop-capture/app.js @@ -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(); }