diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-11-26 17:10:11 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-11-26 17:10:11 +0100 |
commit | 417c403ba8e46dd97ffe656fc8761cb8c6380652 (patch) | |
tree | 208c8d5aa23ca4b8ddc35d2b37159ab4ab07b901 /app/ui/settings.php | |
parent | e1fe55e82cc4af07a5e4544de1629b9d25c9ce2b (diff) | |
download | mist-417c403ba8e46dd97ffe656fc8761cb8c6380652.tar.gz mist-417c403ba8e46dd97ffe656fc8761cb8c6380652.tar.bz2 mist-417c403ba8e46dd97ffe656fc8761cb8c6380652.zip |
Updated 13 files and added app/studio.php (automated)
Diffstat (limited to 'app/ui/settings.php')
-rw-r--r-- | app/ui/settings.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/ui/settings.php b/app/ui/settings.php index 26217f0..4897f06 100644 --- a/app/ui/settings.php +++ b/app/ui/settings.php @@ -251,7 +251,12 @@ <hr> <?php if (str_contains($_SERVER['HTTP_USER_AGENT'], "MistNative/")): ?> - <a onclick="window.parent.MistNative.about();" href="#">About Mist</a> + <a onclick="window.parent.MistNative.about();" href="#">About Mist</a><span id="studio" style="display: none;"> ยท <a onclick="window.parent.MistNative.studio();" href="#">Switch to Mist Studio</a></span> + <script> + if (window.parent.MistNative.studio) { + document.getElementById("studio").style.display = ""; + } + </script> <?php else: ?> <div class="text-muted"> <img class="icon" src="/assets/logo-transparent.svg" style="vertical-align: middle; filter: grayscale(1) invert(1); width: 32px; height: 32px;" alt=""> |