Skip to content

Commit

Permalink
[feat] General : add option to open links in new tab (#84)
Browse files Browse the repository at this point in the history
Fix #78
  • Loading branch information
tprouvot authored May 5, 2023
1 parent cd920c1 commit 57893b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Version 1.17

General
-------
* Add a configuration option for links to open in a new tab ([feature 78](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/75) )
* Import data as JSON ([feature 75](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/75) )
* Fix auto update action on data import ([issue 73](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/73) )
* Restore focus on suggested fields when pressing tab key in query editor ([issue 66](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/66) created by [Enrique Muñoz](https://github.com/emunoz-at-wiris))
Expand Down
3 changes: 2 additions & 1 deletion addon/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ class App extends React.PureComponent {
let orgInstance = this.getOrgInstance(sfHost);
let hostArg = new URLSearchParams();
hostArg.set("host", sfHost);
let linkTarget = inDevConsole ? "_blank" : "_top";
let linkInNewTab = localStorage.getItem("openLinksInNewTab");
let linkTarget = inDevConsole || linkInNewTab ? "_blank" : "_top";
return (
h("div", {},
h("div", { className: "header" },
Expand Down

0 comments on commit 57893b0

Please sign in to comment.