Skip to content

Commit

Permalink
Web:Files:Added removal of the isFirstUrl key from localStorage.
Browse files Browse the repository at this point in the history
  • Loading branch information
gazizova-vlada committed Feb 2, 2022
1 parent 29930f2 commit 9e35b79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions products/ASC.Files/Client/src/pages/Home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ class PureHome extends React.Component {
getFileInfo,
} = this.props;

if (!window.location.href.includes("#preview")) {
localStorage.removeItem("isFirstUrl");
}

const reg = new RegExp(`${homepage}((/?)$|/filter)`, "gmi"); //TODO: Always find?
const match = window.location.pathname.match(reg);
let filterObj = null;
Expand Down

0 comments on commit 9e35b79

Please sign in to comment.