From c6b6412ae328098bf2df6bec57ce4f1f7c1d984a Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Wed, 17 Apr 2024 08:21:53 +0200 Subject: [PATCH 1/4] build.sh: add *.dtd files to archive (translations). --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 4d4f73b..68a2df0 100755 --- a/build.sh +++ b/build.sh @@ -4,4 +4,4 @@ filename='mailhops' rm -f $filename.zip -zip -r $filename.zip ./ -i *.js *.xhtml *.html *.png *.svg *.gif *.css *.json _locales/*/messages.json +zip -r $filename.zip ./ -i *.js *.xhtml *.html *.png *.svg *.gif *.css *.json *.dtd _locales/*/messages.json From 28f89f5228e085d622bb6800f5590090aef822a8 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Wed, 17 Apr 2024 08:29:00 +0200 Subject: [PATCH 2/4] build.sh: prevent shell from interpreting patterns. We want zip to handle the include patterns. Fixes the "bug" that *.json had to be included multiple times in the list (first one was expanded to the top-level manifest.json file by the shell, second one was also expanded to the individual messages.json files within the _locales directory). --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 68a2df0..06bab59 100755 --- a/build.sh +++ b/build.sh @@ -4,4 +4,4 @@ filename='mailhops' rm -f $filename.zip -zip -r $filename.zip ./ -i *.js *.xhtml *.html *.png *.svg *.gif *.css *.json *.dtd _locales/*/messages.json +zip -r $filename.zip ./ -i '*.js' '*.xhtml' '*.html' '*.png' '*.svg' '*.gif' '*.css' '*.json' '*.dtd' From 08f3706432482a31f74a5c8a5f0938be3dd75751 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Wed, 17 Apr 2024 08:32:57 +0200 Subject: [PATCH 3/4] js/mailhops_details.js: fix inverted logic for links containing a comma character. Actually, links containing a comma character are just multiple links, the current code wants to fetch the first element and drop all others. We'll change this at a later time, but for now, just fix the bug at hand. --- js/mailhops_details.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/mailhops_details.js b/js/mailhops_details.js index 07c2819..be6dafb 100644 --- a/js/mailhops_details.js +++ b/js/mailhops_details.js @@ -136,7 +136,7 @@ function updateContent(msg, noauth) { auth += ''; } else if (msg.message.auth[a].link) { - if (msg.message.auth[a].link.indexOf(',')) { + if (-1 !== msg.message.auth[a].link.indexOf(',')) { auth += '' + msg.message.auth[a].type + ''; } else { From 7835ac3e9606b574f0d582998951eb59d9bbd1c2 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Wed, 17 Apr 2024 08:33:37 +0200 Subject: [PATCH 4/4] js/mailhops.js: sync version number with manifest.json. --- js/mailhops.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/mailhops.js b/js/mailhops.js index 3125fd2..d16d6f2 100644 --- a/js/mailhops.js +++ b/js/mailhops.js @@ -10,7 +10,7 @@ class MailHops { loading = false tabId = null options = { - version: 'MailHops Plugin 4.3.3', + version: 'MailHops Plugin 4.4.0', api_key: '', owm_key: '', lang: 'en',