Skip to content

Commit

Permalink
Merge pull request #117 from richardfrost/fix_volume_muting
Browse files Browse the repository at this point in the history
Fix volume muting
  • Loading branch information
richardfrost authored Feb 7, 2019
2 parents e601684 + 034adf7 commit 24a0a1a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "advancedprofanityfilter",
"version": "2.0.0",
"version": "2.0.1",
"description": "A browser extension to filter profanity from webpages.",
"main": "filter.js",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/script/webAudio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class WebAudio {
break;
case 1: { // Mute video
let video = document.getElementsByTagName('video')[0];
if (video && video.hasOwnProperty('volume')) {
if (video && video.volume != null) {
filter.volume = video.volume; // Save original volume
video.volume = 0;
}
Expand Down Expand Up @@ -89,7 +89,7 @@ export default class WebAudio {
break;
case 1: { // Mute video
let video = document.getElementsByTagName('video')[0];
if (video && video.hasOwnProperty('volume')) {
if (video && video.volume != null) {
video.volume = filter.volume;
}
break;
Expand Down
2 changes: 1 addition & 1 deletion src/static/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"short_name": "Profanity Filter",
"author": "Richard Frost",
"manifest_version": 2,
"version": "2.0.0",
"version": "2.0.1",
"description": "Advanced Profanity Filter helps to clean up bad language on the websites you and your family visit.",
"icons": {
"16": "img/icon16.png",
Expand Down

0 comments on commit 24a0a1a

Please sign in to comment.