fix baseUrl helper

pull/9311/head
Karl Prieb 8 years ago
parent c9176ba882
commit c97f2776bc
  1. 10
      packages/rocketchat-ui/client/components/icon.js

@ -1,11 +1,5 @@
/* globals isFirefox */
Template.icon.helpers({
baseUrl() {
if (isFirefox) {
return window.location.href.replace(window.location.hash, '');
}
const baseUrl = isFirefox ? () => { FlowRouter.watchPathChange(); return `${ window.location.origin }${ FlowRouter.current().path }`; } : () => '';
return '';
}
});
Template.icon.helpers({ baseUrl });

Loading…
Cancel
Save