From 884eb395893c067b7e490886f0b12bebd0b5b005 Mon Sep 17 00:00:00 2001 From: Aidan Campbell Date: Thu, 18 Feb 2016 22:11:03 -0500 Subject: [PATCH] removed default resolution/FPS text if saved value is found --- static/js/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/index.js b/static/js/index.js index 46551f3..53e4d6e 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -136,6 +136,7 @@ function readData(key, callbackFunction) { } function loadResolution(previousValue) { + document.getElementById('selectResolution').remove(0); document.getElementById('selectResolution').value = previousValue.resolution != null ? previousValue.resolution : '1280:720'; } @@ -144,6 +145,7 @@ function saveResolution() { } function loadFramerate(previousValue) { + document.getElementById('selectFramerate').remove(0); document.getElementById('selectFramerate').value = previousValue.frameRate != null ? previousValue.frameRate : '30'; }