diff --git a/extension/background.js b/extension/background.js index 5dc01c1..f76ba97 100644 --- a/extension/background.js +++ b/extension/background.js @@ -296,7 +296,7 @@ function handleMessage(request, sender, sendResponse) { })() .then(value => sendResponse({ success: true, value })) .catch(e => { - console.error(e); + console.log(e); let message = e?.message ?? e; if (message === 'Failed to fetch') { // chrome's error message for failed `fetch` is not very user-friendly @@ -311,6 +311,6 @@ browserType.runtime.onMessage.addListener(handleMessage); browserType.runtime.onInstalled.addListener(() => { browserType.storage.local.get('continuousSync', data => { - handleContinuousCookie(data?.continuousSync.checked); + handleContinuousCookie(data?.continuousSync?.checked || false); }); }); diff --git a/extension/index.html b/extension/index.html index 6e1fa25..72bda83 100644 --- a/extension/index.html +++ b/extension/index.html @@ -14,7 +14,7 @@ - v0.3.2 + v0.4.0-dev