regular expressions are never falsey
parent
24eac9b4a6
commit
8fb7fef3f5
|
@ -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>', {
|
||||
|
|
Loading…
Reference in New Issue