diff options
author | 2022-07-12 23:35:09 +0100 | |
---|---|---|
committer | 2022-07-12 23:35:09 +0100 | |
commit | c265c7991691828019c0a06c44f62a5d2d072c0f (patch) | |
tree | 0d1563f8d8a4f12d04a3d65c23582ca58863021d /recipes/zoom | |
parent | Fix facebook notifications counter (#118) (diff) | |
download | ferdium-recipes-c265c7991691828019c0a06c44f62a5d2d072c0f.tar.gz ferdium-recipes-c265c7991691828019c0a06c44f62a5d2d072c0f.tar.zst ferdium-recipes-c265c7991691828019c0a06c44f62a5d2d072c0f.zip |
Change isImage to link and stayInsideDiscord (#120)
* Change isImage to URL and stayInsideDiscord
* Fix comments
Diffstat (limited to 'recipes/zoom')
-rw-r--r-- | recipes/zoom/package.json | 2 | ||||
-rw-r--r-- | recipes/zoom/webview.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/zoom/package.json b/recipes/zoom/package.json index 5357394..2982a9d 100644 --- a/recipes/zoom/package.json +++ b/recipes/zoom/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "zoom", | 2 | "id": "zoom", |
3 | "name": "Zoom", | 3 | "name": "Zoom", |
4 | "version": "1.3.3", | 4 | "version": "1.3.4", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://zoom.us/join", | 7 | "serviceURL": "https://zoom.us/join", |
diff --git a/recipes/zoom/webview.js b/recipes/zoom/webview.js index 1255675..45cc5b7 100644 --- a/recipes/zoom/webview.js +++ b/recipes/zoom/webview.js | |||
@@ -33,8 +33,8 @@ module.exports = (Ferdium, settings) => { | |||
33 | 33 | ||
34 | if (link || button) { | 34 | if (link || button) { |
35 | const url = link ? link.getAttribute('href') : button.getAttribute('title'); | 35 | const url = link ? link.getAttribute('href') : button.getAttribute('title'); |
36 | 36 | ||
37 | if (!Ferdium.isImage(url)) { | 37 | if (!Ferdium.isImage(link)) { |
38 | event.preventDefault(); | 38 | event.preventDefault(); |
39 | event.stopPropagation(); | 39 | event.stopPropagation(); |
40 | 40 | ||