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
1 changed files with 5 additions and 2 deletions

View File

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