Skip to content

Commit

Permalink
make the code more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
karlprieb committed Jan 3, 2018
1 parent 3e3cbb4 commit 73f0703
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/rocketchat-ui/client/components/icon.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* globals isFirefox */

const baseUrl = isFirefox && isFirefox[1] < 55 ? () => `${ window.location.origin }${ FlowRouter.current().path }` : () => '';
const firefoxBaseUrlFix = () => `${ window.location.origin }${ FlowRouter.current().path }`;

Template.icon.helpers({ baseUrl });
Template.icon.helpers({
baseUrl: isFirefox && isFirefox[1] < 55 ? firefoxBaseUrlFix : undefined
});

0 comments on commit 73f0703

Please sign in to comment.