summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/uber/uber.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/uber/uber.js')
-rw-r--r--chrome/browser/resources/uber/uber.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/resources/uber/uber.js b/chrome/browser/resources/uber/uber.js
index e9fd4a9..d454d0b 100644
--- a/chrome/browser/resources/uber/uber.js
+++ b/chrome/browser/resources/uber/uber.js
@@ -36,6 +36,12 @@ cr.define('uber', function() {
window.setTimeout(function() {
document.documentElement.classList.remove('loading');
}, 0);
+
+ // HACK(dbeam): This makes the assumption that any second part to a path
+ // will result in needing background navigation. We shortcut it to avoid
+ // flicker on load.
+ if (params.path && window.location.pathname.indexOf('settings') == 0)
+ backgroundNavigation();
}
/**