Merge branch 'master' into 3177-collection-choose-files
[arvados.git] / apps / workbench / app / assets / javascripts / application.js
index 9fa37c95763cd78cc32e55fc392f5845bfafea87..1990b8b0f55c8d2497db67cae6d6da21f714663b 100644 (file)
@@ -222,7 +222,6 @@ jQuery(function($){
 window.addEventListener("DOMContentLoaded", function(e) {
     if(history.state) {
         if(history.state.nocache) {
-            console.log('no cache!');
             showLoadingModal();
             history.replaceState( {}, '' );
             location.reload(true);
@@ -237,3 +236,7 @@ function showLoadingModal() {
 function hideLoadingModal() {
     $('#loading-modal').modal('hide');
 }
+
+function hasHTML5History() {
+    return !!(window.history && window.history.pushState);
+}