Skip to content

Commit

Permalink
Reduce options that can be restored in sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
mastef committed Apr 28, 2020
1 parent e5b5511 commit 19b9222
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Session.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ class Session extends React.Component {
customName = this.props.window.name;
}

var whitelistWindow = ["url", "tabId", "left", "top", "width", "height", "focused", "incognito", "type", "setSelfAsOpener"];
var whitelistWindow = ["left", "top", "width", "height", "incognito", "type"];

if (navigator.userAgent.search("Firefox") > -1) {
whitelistWindow = ["url", "tabId", "left", "top", "width", "height", "incognito", "type", "setSelfAsOpener"];
whitelistWindow = ["left", "top", "width", "height", "incognito", "type"];
}

var whitelistTab = ["windowId", "index", "url", "active", "selected", "pinned"];
var whitelistTab = ["url", "active", "selected", "pinned"];

if (navigator.userAgent.search("Firefox") > -1) {
whitelistTab = ["windowId", "index", "url", "active", "pinned"];
whitelistTab = ["url", "active", "pinned"];
}

var filteredWindow = Object.keys(this.props.window.windowsInfo)
Expand Down

0 comments on commit 19b9222

Please sign in to comment.