From 0d361d67d7bf39d50f136a8e28863bcbc57b1fd2 Mon Sep 17 00:00:00 2001 From: hackademix Date: May 31 2021 20:51:04 +0000 Subject: Fix regressions from switch to Promise-based APIs (issue #4). --- diff --git a/common/options.html b/common/options.html index 3685b47..8fd08be 100644 --- a/common/options.html +++ b/common/options.html @@ -3,6 +3,7 @@ + diff --git a/common/options.js b/common/options.js index 1825f36..8cbf05c 100644 --- a/common/options.js +++ b/common/options.js @@ -195,7 +195,7 @@ function prepare_level_config(action_descr, params = wrapping_groups.empty_level } } } - browser.storage.sync.get("custom_levels", updateLevels.bind(null).then(new_level)); + browser.storage.sync.get("custom_levels").then(updateLevels.bind(null, new_level)); } else { alert("Please provide all required fields: ID, Name, and Decription");