Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions client/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import '../imports/startup/client';
import '../lib/RegExp';

import './lib/toastr';
import './helpers/escapeCssUrl';
import './helpers/log';
import './helpers/not';
import './templateHelpers';
import './methods/deleteMessage';
import './methods/hideRoom';
import './methods/openRoom';
Expand Down
4 changes: 0 additions & 4 deletions client/routes/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ import { Session } from 'meteor/session';

import { KonchatNotification } from '../../app/ui';

Blaze.registerHelper('pathFor', function(path, kw) {
return FlowRouter.path(path, kw.hash);
});

BlazeLayout.setRoot('body');

const createTemplateForComponent = async (
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions client/templateHelpers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import './escapeCssUrl';
import './log';
import './not';
import './pathFor';
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions client/templateHelpers/pathFor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { FlowRouter } from 'meteor/kadira:flow-router';
import { Template } from 'meteor/templating';


Template.registerHelper('pathFor', (path, { hash }) => FlowRouter.path(path, hash));
51 changes: 43 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.