Update components.js

This commit is contained in:
Daniel Supernault 2019-05-02 21:09:39 -06:00
parent a9072b3ad7
commit 7d56d27f94
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -8,9 +8,12 @@ import VueTimeago from 'vue-timeago';
Vue.use(BootstrapVue); Vue.use(BootstrapVue);
Vue.use(InfiniteLoading); Vue.use(InfiniteLoading);
Vue.use(Loading); Vue.use(Loading);
Vue.use(VueTimeago); Vue.use(VueTimeago, {
name: 'Timeago',
locale: 'en'
});
pixelfed.readmore = () => { pixelfed.readmore = function() {
$('.read-more').each(function(k,v) { $('.read-more').each(function(k,v) {
let el = $(this); let el = $(this);
let attr = el.attr('data-readmore'); let attr = el.attr('data-readmore');