summaryrefslogtreecommitdiffstats
path: root/public/javascripts/application.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/application.js')
-rw-r--r--public/javascripts/application.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index e125e68b4..e4e902d9c 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -412,7 +412,7 @@ function getRemoteTab(name, remote_url, url, load_always) {
//replaces current URL with the "href" attribute of the current link
//(only triggered if supported by browser)
function replaceInHistory(url) {
- if ("replaceState" in window.history) {
+ if ("replaceState" in window.history && url !== undefined) {
window.history.replaceState(null, document.title, url);
}
}