Skip to content

Commit

Permalink
Item14281: Don't need to use ternary
Browse files Browse the repository at this point in the history
The cooke methods accept javascript true/false.  No need to convert to a
0/1 value.
  • Loading branch information
gac410 committed Jan 22, 2017
1 parent 943beae commit e4519af
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -51,7 +51,7 @@
}

self.options.cookieDomain = foswiki.getPreference('COOKIEREALM'); // Allow domain override
self.options.cookieSecure = (foswiki.getPreference('URLHOST').startsWith('https://')) ? '1' : '0';
self.options.cookieSecure = foswiki.getPreference('URLHOST').startsWith('https://');

// events
$(document).bind("refresh.foswikiUpdates", function() {
Expand Down

0 comments on commit e4519af

Please sign in to comment.