File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- package-lock.json linguist-generated
2- pnpm-lock.yaml linguist-generated
1+ # https://git-scm.com/docs/gitattributes
2+ # https://git-scm.com/book/en/Customizing-Git-Git-Attributes
3+ * text =auto
4+
5+ # https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
6+ # https://github.com/github-linguist/linguist/blob/master/docs/overrides.md
37public linguist-generated
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ async function getValue(key, defaultValue) {
2121 }
2222 const prefixedKey = `${ sid } ---${ key } ` ;
2323 const results = await browser . storage . local . get ( prefixedKey ) ;
24- return results [ prefixedKey ] ?? defaultValue ?? undefined ;
24+ if ( prefixedKey in results ) return results [ prefixedKey ] ;
25+ if ( defaultValue !== undefined ) return defaultValue ;
26+ return undefined ;
2527}
2628
2729async function deleteValue ( key ) {
You can’t perform that action at this time.
0 commit comments