diff --git a/www/common/toolbar3.js b/www/common/toolbar3.js index c8faa738a..316f4849a 100644 --- a/www/common/toolbar3.js +++ b/www/common/toolbar3.js @@ -596,7 +596,7 @@ define([ var origin = config.metadataMgr.getPrivateData().origin; - var href = inDrive ? origin+'/index.html' : origin+'/drive/'; + var href = inDrive.test(origin) ? origin+'/index.html' : origin+'/drive/'; var buttonTitle = inDrive ? Messages.header_homeTitle : Messages.header_logoTitle; var $aTag = $('', { diff --git a/www/pad/main.js b/www/pad/main.js index fdf4c970e..f93e4b53d 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -234,5 +234,6 @@ define([ Cryptpad.replaceHash(Cryptpad.getEditHashFromKeys(wc.id, secret.keys)); } }); + Cryptpad.reportAppUsage(); }); });