From 17b986a6cadf0a88fb7a26adc4571c9ea0e1b3b7 Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Fri, 11 Aug 2017 12:56:06 +0200 Subject: [PATCH] fix toolbar drive link (oops) --- www/common/toolbar2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/toolbar2.js b/www/common/toolbar2.js index 519700624..f641c0c9f 100644 --- a/www/common/toolbar2.js +++ b/www/common/toolbar2.js @@ -624,7 +624,7 @@ define([ }).appendTo(toolbar.$top); // We need to override the "a" tag action here because it is inside the iframe! - var inDrive = /^\/drive/; + var inDrive = /^\/drive/.test(window.location.pathname); var href = inDrive ? '/index.html' : '/drive/'; var buttonTitle = inDrive ? Messages.header_homeTitle : Messages.header_logoTitle;