fix toolbar drive link (oops)

pull/1/head
Pierre Bondoerffer 7 years ago
parent 7f2b7fc287
commit 17b986a6ca
No known key found for this signature in database
GPG Key ID: C0C7C0C5063F2236

@ -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;

Loading…
Cancel
Save