From a31ee0a0e9b4f1198cb9ac43d205267b8cf45bb2 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Mon, 28 Oct 2019 00:09:36 +0200 Subject: [PATCH] refactoring --- ext/bg/js/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js index 14fc0279..3209cc31 100644 --- a/ext/bg/js/api.js +++ b/ext/bg/js/api.js @@ -22,12 +22,12 @@ function apiOptionsGet(optionsContext) { } async function apiOptionsSet(changedOptions, optionsContext, source) { - let options = await apiOptionsGet(optionsContext); + const options = await apiOptionsGet(optionsContext); function getValuePaths(obj) { let valuePaths = []; let nodes = [{ - obj: changedOptions, + obj, path: [] }]; while (nodes.length > 0) {