Skip to content

Commit

Permalink
Add support for Thunderbird versions 128 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
moisseev committed Jun 22, 2024
1 parent ef4c351 commit d6c1832
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion experiments/scoreColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ var [majorVersion, minorVersion] = Services.appinfo.platformVersion.split(".", 2
const RspamdSpamnessColumn = {};
// Thunderbird Supernova with custom column handlers support
const SupernovaCC = majorVersion > 115 || (majorVersion === 115 && minorVersion >= 10);
const ThreadPaneColumnsURI = "chrome://messenger/content/" +
((majorVersion < 128) ? "thread-pane-columns" : "ThreadPaneColumns") + ".mjs";
const ThreadPaneColumns = SupernovaCC
? ChromeUtils.importESModule("chrome://messenger/content/thread-pane-columns.mjs").ThreadPaneColumns
? ChromeUtils.importESModule(ThreadPaneColumnsURI).ThreadPaneColumns
: null;

// eslint-disable-next-line no-var
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"gecko": {
"id": "rspamd-spamness@alexander.moisseev",
"strict_min_version": "78.0",
"strict_max_version": "127.*"
"strict_max_version": "128.*"
}
},
"name": "__MSG_extensionName__",
Expand Down

0 comments on commit d6c1832

Please sign in to comment.