Skip to content

Commit

Permalink
JS remove logged in check on history back
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisjacquet committed Apr 25, 2022
1 parent 7ded1e2 commit ec3f70c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -57,6 +57,7 @@ Changes in 9.0
- JS update marked to v4.0.14 in assets/js/marked/
- JS add DOMPurify 2.3.6 in assets/js/DOMPurify/ & Gruntfile.js
- JS fix stored XSS issue related to MarkDown in warehouse.js & plugins.min.js, thanks to @intrapus
- JS remove logged in check on history back in warehouse.js & plugins.min.js

Changes in 8.9.5
----------------
Expand Down
2 changes: 1 addition & 1 deletion assets/js/plugins.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/plugins.min.js.map

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions assets/js/warehouse.js
Expand Up @@ -483,14 +483,6 @@ var ajaxPopState = function() {
// onunload: Fix for Firefox to execute Javascript on history back.
window.onunload = function() {};

// Check if logged in.
// http://stackoverflow.com/questions/6359327/detect-back-button-click-in-browser
if (window.performance && window.performance.navigation.type == 2) {
if (document.URL.indexOf('Modules.php?') != -1) {
window.location.href = 'index.php?modfunc=logout';
}
}

// ListOutput JS.
var LOSearch = function(ev, val, url) {
if (ev.type === 'click' || ev.keyCode == 13) {
Expand Down

0 comments on commit ec3f70c

Please sign in to comment.