Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2276 from mozilla-services/fix-my-shots
Browse files Browse the repository at this point in the history
Fix #2246, make the My Shots button open /shots
  • Loading branch information
fzzzy authored Mar 3, 2017
2 parents 78799bd + 0a32a7d commit 6950237
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions webextension/background/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,9 @@ window.main = (function () {
return null;
});

communication.register("openMyShots", () => {
chrome.tabs.create({url: backend + "/shots"});
});

return exports;
})();
4 changes: 2 additions & 2 deletions webextension/selector/uicontrol.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* globals console, catcher, util, ui, snapping */
/* globals window, document, location, shooter */
/* globals window, document, location, shooter, callBackground */

window.uicontrol = (function () {
let exports = {};
Expand Down Expand Up @@ -130,8 +130,8 @@ window.uicontrol = (function () {
let standardOverlayCallbacks = {
onOpenMyShots: () => {
sendEvent("goto-myshots", "selection-button");
callBackground("openMyShots");
exports.deactivate();
self.port.emit("openMyShots");
},
onClickVisible: () => {
sendEvent("capture-visible", "selection-button");
Expand Down

0 comments on commit 6950237

Please sign in to comment.