aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zoom/webview.js
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2022-07-12 23:35:09 +0100
committerLibravatar GitHub <noreply@github.com>2022-07-12 23:35:09 +0100
commitc265c7991691828019c0a06c44f62a5d2d072c0f (patch)
tree0d1563f8d8a4f12d04a3d65c23582ca58863021d /recipes/zoom/webview.js
parentFix facebook notifications counter (#118) (diff)
downloadferdium-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/webview.js')
-rw-r--r--recipes/zoom/webview.js4
1 files changed, 2 insertions, 2 deletions
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