mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-15 11:31:00 +01:00
Make vars
This commit is contained in:
parent
100be62385
commit
08a789494e
@ -3,6 +3,9 @@
|
|||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Models\UserData;
|
use App\Models\UserData;
|
||||||
$usrhandl = Auth::user()->littlelink_name;
|
$usrhandl = Auth::user()->littlelink_name;
|
||||||
|
|
||||||
|
$betaServer = env('BETA_SERVER', 'https://beta.linkstack.org/');
|
||||||
|
$versionServer = env('VERSION_SERVER', 'https://version.linkstack.org/');
|
||||||
@endphp
|
@endphp
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
@include('layouts.lang')
|
@include('layouts.lang')
|
||||||
@ -520,7 +523,7 @@ MODAL; // Indentation breaks my code editor :/
|
|||||||
@if (env('JOIN_BETA') == true)
|
@if (env('JOIN_BETA') == true)
|
||||||
<script>
|
<script>
|
||||||
window.onload = async function() {
|
window.onload = async function() {
|
||||||
const Vbeta = await externalFileGetContents('https://beta.linkstack.org/vbeta.json');
|
const Vbeta = await externalFileGetContents('{{"{$betaServer}vbeta.json"}}');
|
||||||
|
|
||||||
const isVisible = true;
|
const isVisible = true;
|
||||||
|
|
||||||
@ -537,7 +540,7 @@ MODAL; // Indentation breaks my code editor :/
|
|||||||
@else
|
@else
|
||||||
<script>
|
<script>
|
||||||
window.onload = async function() {
|
window.onload = async function() {
|
||||||
const Vgit = await externalFileGetContents('https://version.linkstack.org/');
|
const Vgit = await externalFileGetContents('{{$versionServer}}');
|
||||||
const Vlocal = `{{ trim($Vlocal) }}`;
|
const Vlocal = `{{ trim($Vlocal) }}`;
|
||||||
|
|
||||||
const isVisible = Vgit > Vlocal;
|
const isVisible = Vgit > Vlocal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user