Skip to content

Commit 1450094

Browse files
committed
Fixed bug with event.path on Click
1 parent 6fdf23b commit 1450094

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<img src="github/images/icon.svg" width="25%" align="right">
22

33
# Google Meet Helper
4-
<img src="https://shields.io/badge/version-v1.1-blue">
4+
<img src="https://shields.io/badge/version-v1.2-blue">
55

66
## Features:
77
* Automatically join a meeting.
@@ -85,6 +85,10 @@
8585

8686

8787
## List of changes:
88+
89+
### 1.2:
90+
* Fixed bug with Volume bar not displaying on click
91+
8892
### 1.1:
8993
* Fixed fullscreen hotkey conflict with chat
9094
* Added Picture in Picture feature

chrome/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifest_version": 3,
3-
"version": "1.1",
3+
"version": "1.2",
44
"name": "__MSG_extName__",
55
"description": "__MSG_extDesc__",
66
"default_locale": "en",

chrome/menu/options.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ <h2>__MSG_settings__</h2>
9393
</a>
9494

9595
<span style="margin-top:2px;">
96-
<img src="https://shields.io/badge/version-v1.1-blue">
96+
<img src="https://shields.io/badge/version-v1.2-blue">
9797
</span>
9898
</p>
9999

chrome/script.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ function in_meet_main(){
146146
div.style.background = ""
147147
})
148148
document.body.addEventListener("mousedown", e=>{
149-
if (e.path.includes(div)){
150-
if (e.path.includes(div.querySelector("div"))){ return }
149+
let path = event.path || (event.composedPath && event.composedPath());
150+
if (path.includes(div)){
151+
if (path.includes(div.querySelector("div"))){ return }
151152
let result = div.querySelector("div").style.visibility == "hidden" ? "visible" : "hidden";
152153
div.querySelector("div").style.visibility = result;
153154
if (result == "visible"){

meet.user.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Google Meet Helper
3-
// @version 1.1
3+
// @version 1.2
44
// @description Adds additional tools to Google Meets. Automatically join meetings, turn off the camera and microphone, and other.
55
// @author Super Zombi
66
// @match https://meet.google.com/*
@@ -241,7 +241,7 @@ GM_registerMenuCommand(get_message("settings"), ()=>{
241241
<span style="margin-left:5px; ${dark_theme ? "color: #00c0ff;" : "color: blue;"}">GitHub</span>
242242
</a>
243243
244-
<img style="margin-top:2px;" src="https://shields.io/badge/version-v1.1-blue">
244+
<img style="margin-top:2px;" src="https://shields.io/badge/version-v1.2-blue">
245245
</p>
246246
`
247247
div.appendChild(content)
@@ -455,8 +455,9 @@ function in_meet_main(){
455455
div.style.background = ""
456456
})
457457
document.body.addEventListener("mousedown", e=>{
458-
if (e.path.includes(div)){
459-
if (e.path.includes(div.querySelector("div"))){ return }
458+
let path = event.path || (event.composedPath && event.composedPath());
459+
if (path.includes(div)){
460+
if (path.includes(div.querySelector("div"))){ return }
460461
let result = div.querySelector("div").style.visibility == "hidden" ? "visible" : "hidden";
461462
div.querySelector("div").style.visibility = result;
462463
if (result == "visible"){

0 commit comments

Comments
 (0)