Skip to content

Commit

Permalink
Firefox: Fix: Don't allow to import from the popup due to a Firefox b…
Browse files Browse the repository at this point in the history
…ug. Show warning instead

Closes #57
Possibly related to #96
  • Loading branch information
mastef committed Jun 22, 2020
1 parent c70cf3e commit b375feb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/TabManager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,12 @@ class TabManager extends React.Component {
});
}
importSessions(evt) {
if (navigator.userAgent.search("Firefox") > -1) {
if(window.inPopup) {
window.alert("Due to a Firefox bug session import does not work in the popup. Please use the options screen or open Tab Manager Plus in its' own tab");
return;
}
}
try {
let inputField = evt.target; // #session_import
let files = evt.target.files;
Expand Down

0 comments on commit b375feb

Please sign in to comment.