Skip to content

Commit

Permalink
fix startup errors, add version dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bbilly1 committed Jan 28, 2025
1 parent c17b017 commit 0218d78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
});
});
2 changes: 1 addition & 1 deletion extension/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<a href="#" id="ta-url" target="_blank">
<img src="/images/logo.png" alt="ta-logo">
</a>
<span>v0.3.2</span>
<span>v0.4.0-dev</span>
</div>
<hr>
<form class="login-form">
Expand Down
2 changes: 1 addition & 1 deletion extension/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ document.addEventListener('DOMContentLoaded', async () => {
document.getElementById('api-key').value = item.access.apiKey;
pingBackend();
addUrl(item.access);
setCookieState();
}

function setContinuousCookiesOptions(result) {
Expand Down Expand Up @@ -263,5 +264,4 @@ document.addEventListener('DOMContentLoaded', async () => {
setAutostartOption(result);
});

setCookieState();
});

0 comments on commit 0218d78

Please sign in to comment.