Storage: add jsdoc

This commit is contained in:
ikipatang 2017-12-07 19:56:21 +01:00
parent fdd0f7cfae
commit af99a34045

View file

@ -8,16 +8,20 @@ var storage = {
popupHeight: 600, popupHeight: 600,
} }
/* /**
Generic error logger. * Generic error logger.
* @param {object} e -
* @return {void} -
*/ */
function onError(e) { function onError(e) {
console.error(e); console.error(e);
} }
/* /**
On startup, check whether we have stored settings. * On startup, check whether we have stored settings.
If we don't, then store the default settings. * If we don't, then store the default settings.
* @param {object} storedSettings -
* @return {void} -
*/ */
function checkStoredSettings(storedSettings) { function checkStoredSettings(storedSettings) {
if (storedSettings.url === undefined) { if (storedSettings.url === undefined) {