More work with titles & descriptions
This commit is contained in:
parent
a1138c8c43
commit
464af6b9d1
21 changed files with 178 additions and 51 deletions
13
imports/ui/components/Utils/location.js
Normal file
13
imports/ui/components/Utils/location.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { Meteor } from 'meteor/meteor';
|
||||
import { ReactiveVar } from 'meteor/reactive-var';
|
||||
|
||||
export const location = new ReactiveVar();
|
||||
|
||||
export const currentLocation = () => {
|
||||
if (Meteor.isClient) {
|
||||
return window.location.pathname;
|
||||
}
|
||||
return location.get();
|
||||
};
|
||||
|
||||
export const isHome = () => currentLocation() === '/';
|
||||
Loading…
Add table
Add a link
Reference in a new issue