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

Commit

Permalink
Replace shot creating url w/ view url from addon. (#3995) (#4009)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba authored and jaredhirsch committed Jan 25, 2018
1 parent 6aa2deb commit 43ad2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/webextension/background/takeshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ this.takeshot = (function() {
sendEvent('internal', 'open-shot-tab');
return uploadShot(shot, imageBlob, thumbnailBlob);
}).then(() => {
return browser.tabs.update(openedTab.id, {url: shot.viewUrl}).then(
return browser.tabs.update(openedTab.id, {url: shot.viewUrl, loadReplace: true}).then(
null,
(error) => {
// FIXME: If https://bugzilla.mozilla.org/show_bug.cgi?id=1365718 is resolved,
Expand Down

0 comments on commit 43ad2df

Please sign in to comment.