From a4a62b0d1e8769ebedc85f77f39a6852684d7c51 Mon Sep 17 00:00:00 2001 From: tartpvule <4371378-tartpvule@users.noreply.gitlab.com> Date: Thu, 12 Sep 2019 19:52:10 +0000 Subject: [PATCH] Add console logging in saveOnDisk --- core_js/storage.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core_js/storage.js b/core_js/storage.js index 13e8b64..329f046 100644 --- a/core_js/storage.js +++ b/core_js/storage.js @@ -68,6 +68,7 @@ function saveOnDisk(keys) json[key] = value; } }); + console.log(translate('core_save_on_disk')); browser.storage.local.set(json); } @@ -122,6 +123,10 @@ function getEntireData() /** * Save the value under the key on the RAM. +* +* Note: To store the data on the hard disk, one of +* deferSaveOnDisk(), saveOnDisk(), or saveOnExit() +* must be called. * @param {String} key * @param {Object} value */