aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zoom
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/zoom')
-rw-r--r--recipes/zoom/package.json2
-rw-r--r--recipes/zoom/webview.js11
2 files changed, 8 insertions, 5 deletions
diff --git a/recipes/zoom/package.json b/recipes/zoom/package.json
index 82117f7..eb8f557 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.1", 4 "version": "1.3.2",
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 7612d83..030c038 100644
--- a/recipes/zoom/webview.js
+++ b/recipes/zoom/webview.js
@@ -4,7 +4,7 @@ function _interopRequireDefault(obj) {
4 return obj && obj.__esModule ? obj : { default: obj }; 4 return obj && obj.__esModule ? obj : { default: obj };
5} 5}
6 6
7module.exports = Ferdium => { 7module.exports = (Ferdium, settings) => {
8 const getMessages = () => { 8 const getMessages = () => {
9 let directCount = 0; 9 let directCount = 0;
10 const directCountPerServer = document.querySelectorAll( 10 const directCountPerServer = document.querySelectorAll(
@@ -34,9 +34,12 @@ module.exports = Ferdium => {
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 (url.includes('views/imgpsh_fullsize_anim')) { 37 event.preventDefault();
38 event.preventDefault(); 38 event.stopPropagation();
39 event.stopPropagation(); 39
40 if (settings.trapLinkClicks === true) {
41 window.location.href = url;
42 } else {
40 Ferdium.openNewWindow(url); 43 Ferdium.openNewWindow(url);
41 } 44 }
42 } 45 }