From acd38cf8b4ae1da1ab890388cba34c9ef429aeee Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Wed, 21 Nov 2018 22:14:14 +0100 Subject: [PATCH] fix frame selection resetting --- res/popup/js/popup.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/res/popup/js/popup.js b/res/popup/js/popup.js index 769e574..af6a8e7 100644 --- a/res/popup/js/popup.js +++ b/res/popup/js/popup.js @@ -86,18 +86,17 @@ function loadFrames(videoTab) { tablist['siteSettings'].insertSubitem(newItem); tablist['videoSettings'].insertSubitem(newItem); } + console.log("SELECTED SUBITEM — FIRST:", selectedSubitem) if (! selectedSubitem.siteSettings) { selectedSubitem['siteSettings'] = tablist['siteSettings'].selectFirstSubitem(); } else { tablist['siteSettings'].selectSubitem(selectedSubitem.siteSettings) - selectedSubitem['siteSettings'] = selectedSubitem.siteSettings.name; } if (! selectedSubitem.videoSettings) { selectedSubitem['videoSettings'] = tablist['videoSettings'].selectFirstSubitem(); } else { tablist['videoSettings'].selectSubitem(selectedSubitem.videoSettings); - selectedSubitem['videoSettings'] = selectedSubitem.videoSettings.name; } console.log("SELECTED SUBITEMT:", selectedSubitem)