Skip to content

Commit

Permalink
Made volume change to half when starting generated audio.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzanecook committed Aug 31, 2023
1 parent 97365bd commit 7ff0748
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion background/messages/fetchSong.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const fetchCommand = (url, res) => {
"Content-Type": "application/json"
},
body: JSON.stringify({
url
url,
})
}
).then(async fetchRes => {
Expand Down
2 changes: 2 additions & 0 deletions content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const Play = () => {
// @ts-ignore
audioRef.current.load()
// @ts-ignore
audioRef.current.volume = .5
// @ts-ignore
audioRef.current.play()
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lofi-focus",
"displayName": "Lofi Focus",
"version": "0.0.2",
"version": "0.0.3",
"description": "Lofi Focus is a chrome extension that automatically generates lo-fi music when browsing articles, blogs, and other text-heavy sites. The ambient, chilled-out sounds create an enjoyable atmosphere to help users focus while reading.",
"author": "kbve.com",
"scripts": {
Expand Down

0 comments on commit 7ff0748

Please sign in to comment.