-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix file viewer and port close-to-return feature to new file viewer
- Loading branch information
Showing
6 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "amoqueue-wx", | ||
"version": "10.4.1", | ||
"version": "10.4.2", | ||
"author": "Philipp Kewisch <[email protected]>", | ||
"homepage": "https://github.com/kewisch/amo-helper#readme", | ||
"repository": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* Portions Copyright (C) Philipp Kewisch, 2017 */ | ||
* Portions Copyright (C) Philipp Kewisch, 2017-2020 */ | ||
|
||
document.querySelector("a.command[href*='reviewers/review']").addEventListener("click", (event) => { | ||
let slug = event.target.getAttribute("href").split("/")[4]; | ||
|
||
browser.runtime.sendMessage({ action: "tabclose-backtoreview", slug: slug }); | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
waitForElement(document, "a[href*='reviewers/review']").then(reviewlink => { | ||
reviewlink.addEventListener("click", (event) => { | ||
let review = event.target.getAttribute("href").match(REVIEW_RE); | ||
browser.runtime.sendMessage({ action: "tabclose-backtoreview", slug: review[4] }); | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters