Update public/main.js
This commit is contained in:
parent
8f3cb31808
commit
a54ea5a7dc
1 changed files with 3 additions and 1 deletions
|
|
@ -1,7 +1,9 @@
|
|||
var base = "https://shelter.amy.rip/";
|
||||
var options = { headers: { "Accept": "application/json" } };
|
||||
|
||||
fetch(base, options).then(r => r.json()).then(r => {
|
||||
var nocache = (new Date()-0).toString(16)
|
||||
|
||||
fetch(base + "#" + nocache, options).then(r => r.json()).then(r => {
|
||||
r.filter(i => i.is_dir).forEach(e => {
|
||||
const card = document.createElement('div');
|
||||
card.className = 'card d-inline border-primary m-1';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue