Conversation
oxipng -o max --dir oxipng --alpha *.png
…as the legacy 'page'
There was a problem hiding this comment.
Copilot reviewed 11 out of 20 changed files in this pull request and generated 2 comments.
Files not reviewed (9)
- _locales/en/messages.json: Language not supported
- manifest.json: Language not supported
- scripts/build: Language not supported
- scripts/clean: Language not supported
- scripts/optimize-icons: Language not supported
- src/bg/background.html: Language not supported
- TODO.md: Evaluated as low risk
- js/chromeExtensionApiAbstractions.js: Evaluated as low risk
- js/googleAnalytics.js: Evaluated as low risk
Comments suppressed due to low confidence (2)
src/google-analytics.js:121
- Ensure that the error object is a plain object before spreading it.
...error
src/google-analytics.js:103
- Handle network errors more gracefully in the fireEvent function.
console.error('Google Analytics request failed with an exception', e);
| */ | ||
| export async function setSettings(updater) { | ||
| const currentSettings = await getSettings(); | ||
| const newSettings = updater(currentSettings); |
There was a problem hiding this comment.
Add a check to ensure that newSettings is not null or undefined before setting it in storage.
| // Create and store a new session | ||
| sessionData = { | ||
| session_id: currentTimeInMs.toString(), | ||
| timestamp: currentTimeInMs.toString() |
There was a problem hiding this comment.
The timestamp should be stored as a number instead of a string.
| timestamp: currentTimeInMs.toString() | |
| timestamp: currentTimeInMs |
There was a problem hiding this comment.
const currentTimeInMs = Date.now(); contains a number, not a Date object; so calling .toString() on it isn't going to store the Date as a formatted string..
|
|
For current status/plans/etc, refer to that issue; for example, from this comment: