Increase cache duration, fix bandwidth warning

This commit is contained in:
2021-11-24 11:51:39 +01:00
parent 55f7cf7307
commit 7b5931b963
7 changed files with 21 additions and 17 deletions

View File

@@ -9,6 +9,7 @@ export let file = {
name: "",
mime_type: "",
icon_href: "",
show_ads: false,
}
</script>
@@ -24,7 +25,7 @@ export let file = {
<i class="icon">save</i> Download
</button>
</div>
{#if file.size > 5e8}
{#if file.show_ads && file.size > 5e8}
<br/>
<div class="description" style="max-width: 700px; text-align: center;">
<!-- If the file is larger than 500 MB-->

View File

@@ -11,6 +11,7 @@ export let file = {
get_href: "",
icon_href: "",
allow_video_player: true,
show_ads: false,
}
$: loop = file.name.includes(".loop.")
@@ -84,7 +85,7 @@ let download = () => { dispatch("download", {}) }
<i class="icon">save</i> Download
</button>
</div>
{#if file.size > 5e8}
{#if file.show_ads && file.size > 5e8}
<br/>
<div class="description" style="max-width: 700px; text-align: center;">
<!-- If the file is larger than 500 MB-->