[FIX] Fix favico error (#12643)

* Fix favico error

* Fix favico export, remove iife
pull/12564/head^2
Marcos Spessatto Defendi 7 years ago committed by Rodrigo Nascimento
parent 42a3a481e5
commit 3a154eb938
  1. 3
      client/startup/unread.js
  2. 20
      packages/rocketchat-favico/client/favico.js
  3. 5
      packages/rocketchat-favico/client/index.js

@ -1,8 +1,9 @@
/* globals fireGlobalEvent, readMessage, Favico, favico, menu */
/* globals fireGlobalEvent, readMessage, favico, menu */
import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { Session } from 'meteor/session';
import { Favico } from 'meteor/rocketchat:favico';
Meteor.startup(function() {
Tracker.autorun(function() {

@ -23,9 +23,8 @@
* });
*/
/* eslint-disable */
(function() {
var Favico = (function(opt) {
export const Favico = (function(opt) {
'use strict';
opt = (opt) ? opt : {};
var _def = {
@ -843,20 +842,3 @@
}
};
});
// AMD / RequireJS
if (typeof define !== 'undefined' && define.amd) {
define([], function() {
return Favico;
});
}
// CommonJS
else if (typeof module !== 'undefined' && module.exports) {
module.exports = Favico;
}
// included directly via <script> tag
else {
this.Favico = Favico;
}
})();

@ -1 +1,4 @@
import './favico';
import { Favico } from './favico';
export { Favico };

Loading…
Cancel
Save