Skip to content

Commit

Permalink
Load in xhtml windows for Thunderbird 72
Browse files Browse the repository at this point in the history
  • Loading branch information
kewisch committed Jan 19, 2020
1 parent 4307a1c commit cf0e506
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ function startup(data, reason) {
ExtensionSupport.registerWindowListener("quickmove", {
chromeURLs: [
"chrome://messenger/content/messageWindow.xul",
"chrome://messenger/content/messenger.xul"
"chrome://messenger/content/messenger.xul",

// Thunderbird 72+
"chrome://messenger/content/messageWindow.xhtml",
"chrome://messenger/content/messenger.xhtml"
],
onLoadWindow: async function(window) {
let document = window.document;
Expand All @@ -227,9 +231,9 @@ function startup(data, reason) {
initButtonFile(window, document);
initContextMenus(window, document);

if (window.location.href == "chrome://messenger/content/messageWindow.xul") {
if (window.location.href.startsWith("chrome://messenger/content/messageWindow.")) {
document.getElementById("quickmove-goto").remove();
} else if (window.location.href == "chrome://messenger/content/messenger.xul") {
} else if (window.location.href.startsWith("chrome://messenger/content/messenger.")) {
initFolderLocation(window, document);
}
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "1.7.0",
"version": "1.7.1",
"default_locale": "en",
"author": "Philipp Kewisch",
"applications": {
Expand Down

0 comments on commit cf0e506

Please sign in to comment.