src/store/store.js
/**
   * Initialize channel style sheet rules. Useful if it isn't initialized already
   *
   * @memberof Store
   */
Initialize channel style sheet rules. Useful if it isn't initialized already
@memberof Store
Initialize channel style sheet rules . Useful if it isn ' t initialized already @memberof Store
@action
  initializeChannelSheetRules() {
    jss.removeStyleSheet(this.channelsSheet);
    this.channelsStyles = {};
    for (const k of this.joinedChannels) {
      this.channelsStyles[removeHashtag(k.key)] = {
        opacity: 1
      };
    }
    this.channelsSheet = jss
      .createStyleSheet(this.channelsStyles, { link: true })
      .attach();
  }
@ action initializeChannelSheetRules ( ) { jss . removeStyleSheet ( this . channelsSheet ) ; this . channelsStyles = { } ; for ( const k of this . joinedChannels ) { this . channelsStyles [ removeHashtag ( k . key ) ] = { opacity : 1 } ; } this . channelsSheet = jss . createStyleSheet ( this . channelsStyles , { link : true } ) . attach ( ) ; }
Initialize channel style sheet rules.
Initialize channel style sheet rules .