Skip to content

Commit

Permalink
chore: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadashy committed Dec 30, 2023
1 parent 72a0d8a commit 46fd143
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/scripts/content/channe-grouper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import $ from 'jquery/dist/jquery.slim';
import 'requestidlecallback-polyfill';
import * as domConstants from './dom-constants';
import { DATA_KEY_CHANNEL_NAME, DATA_KEY_CHANNEL_PREFIX, DATA_KEY_RAW_CHANNEL_NAME } from './dom-constants';
import { logger } from './logger';

// constants
const CHANNEL_NAME_ROOT = '-/';
Expand Down Expand Up @@ -44,6 +45,8 @@ export default class ChannelGrouper {
}

protected groupingAllByPrefix(): void {
logger.labeledLog('Grouping all by prefix');

const $channelItems = $(domConstants.SELECTOR_CHANNEL_LIST_ITEMS);

if ($channelItems.length === 0) {
Expand Down
1 change: 1 addition & 0 deletions app/scripts/content/channel-observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default class ChannelObserver extends EventEmitter<'update'> {
}

protected emitUpdate(): void {
logger.labeledLog('Emit update event');
this.emit('update');
}

Expand Down

0 comments on commit 46fd143

Please sign in to comment.