From af99a34045a07b8ec5eeb5be8f2ddb4b6b97b061 Mon Sep 17 00:00:00 2001 From: ikipatang <5412352+ikipatang@users.noreply.github.com> Date: Thu, 7 Dec 2017 19:56:21 +0100 Subject: [PATCH] Storage: add jsdoc --- src/storage.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/storage.js b/src/storage.js index 081b6f2..286205d 100644 --- a/src/storage.js +++ b/src/storage.js @@ -8,17 +8,21 @@ var storage = { popupHeight: 600, } -/* -Generic error logger. -*/ +/** + * Generic error logger. + * @param {object} e - + * @return {void} - + */ function onError(e) { console.error(e); } -/* -On startup, check whether we have stored settings. -If we don't, then store the default settings. -*/ +/** + * On startup, check whether we have stored settings. + * If we don't, then store the default settings. + * @param {object} storedSettings - + * @return {void} - + */ function checkStoredSettings(storedSettings) { if (storedSettings.url === undefined) { browser.storage.local.set(storage);