diff --git a/public/index.html b/public/index.html index 673f16f..f8b9bb2 100644 --- a/public/index.html +++ b/public/index.html @@ -2,8 +2,6 @@
- {{ moment(i.updated_at) }} @{{ i.handle }} + {{ axios_check('/icon/' + i.did.replace('did:plc:', '') + '.jpg') }} + {{ moment(i.updated_at) }} @{{ i.handle }} {{ i.text }}
- {{ moment(i.updated_at) }} @{{ i.handle }} + {{ axios_check('/icon/' + i.did.replace('did:plc:', '') + '.jpg') }} + {{ moment(i.updated_at) }} @{{ i.handle }} {{ i.text }}
@@ -112,6 +115,7 @@ import { import 'hooper/dist/hooper.css'; import axios from 'axios' import moment from "moment"; +import fs from 'fs'; var page = 21; var loc = window.location.pathname.split('/').slice(-1)[0]; @@ -138,6 +142,8 @@ export default { comment_open: false, comment_first: null, loading: true, + f: null, + url_check: true, url: "/", s_a: 0, s_b: 2, @@ -162,6 +168,12 @@ export default { }, load() { this.loading = false; + }, + axios_check(url) { + axios.get(url) + .catch(error => { + this.url_check = false; + }); } }, mounted() {