Skip to content

Commit

Permalink
Fix 392 (#393)
Browse files Browse the repository at this point in the history
* [chore] bump version string

* [fix] make missing key check in TranslateUserObject explicit

Javascript shenanigans strike again
  • Loading branch information
rougetimelord authored Jan 22, 2025
1 parent 936d1b0 commit 0e25ba6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blue-blocker",
"version": "0.4.15",
"version": "0.4.16",
"author": "DanielleMiu",
"description": "Blocks all Twitter Blue verified users on twitter.com",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineManifest } from '@crxjs/vite-plugin';
export default defineManifest({
name: 'Blue Blocker',
description: 'Blocks all Twitter Blue verified users on twitter.com',
version: '0.4.15',
version: '0.4.16',
manifest_version: 3,
icons: {
'128': 'icon/icon-128.png',
Expand Down
2 changes: 1 addition & 1 deletion src/parsers/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function TranslateUserObject(obj: RecommendationUser) {

// Pull together a normal object
for(const t of keyTranslations) {
if (!obj[t[1]]) {
if (obj?.[t[1]] == undefined) {
console.log(logstr, `object missing key: ${t[1]}`);
return;
}
Expand Down

0 comments on commit 0e25ba6

Please sign in to comment.