Skip to content

Commit

Permalink
Fix ZeroTalk scroll fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Dec 13, 2016
1 parent 34e5215 commit c0d2e5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Ui/media/Wrapper.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Wrapper
if query == null
query = window.location.search
back = window.location.pathname
if back.match /^\/[^\/]*$/ # Add / after site address if called without it
if back.match /^\/[^\/]+$/ # Add / after site address if called without it
back += "/"
if query.replace("?", "")
back += "?"+query.replace("?", "")
Expand Down
2 changes: 1 addition & 1 deletion src/Ui/media/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ jQuery.extend( jQuery.easing,
query = window.location.search;
}
back = window.location.pathname;
if (back.match(/^\/[^\/]*$/)) {
if (back.match(/^\/[^\/]+$/)) {
back += "/";
}
if (query.replace("?", "")) {
Expand Down

0 comments on commit c0d2e5e

Please sign in to comment.