fix: default sharex config download url

used to be always appended with ?v=undefined regardless of cacheControl
option's value in config file

this never came into attention usually, because the default url would
only be presented to non-logged in users when the safe is private
This commit is contained in:
Bobby 2022-08-10 09:17:48 +07:00
parent 8142eae9df
commit 4c850f4731
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@
attrs: {
id: 'ShareX',
title: 'ShareX user profile',
href: 'https://safe.fiery.me/safe.fiery.me.sxcu?v=' + v2
href: 'https://safe.fiery.me/safe.fiery.me.sxcu?v=' + (versions[2] or '')
},
icon: 'icon-sharex icon-2x'
},

View File

@ -1,4 +1,4 @@
{%- import '_globals.njk' as globals -%}
{%- import '_globals.njk' as globals with context -%}
{# Set root domain here to inherit values from config file #}
{%- set root = utils.conf.homeDomain or utils.conf.domain -%}