regular expressions are never falsey

pull/1/head
ansuz 2017-08-29 10:37:19 +02:00
parent 24eac9b4a6
commit 8fb7fef3f5
1 changed files with 1 additions and 1 deletions

View File

@ -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 = $('<a>', {