asdasd
This commit is contained in:
@@ -20,6 +20,14 @@ $assetVersion = static function (string $publicPath): string {
|
||||
return $mtime === false ? $publicPath : $publicPath . '?v=' . $mtime;
|
||||
};
|
||||
|
||||
$hasMiningChecker = false;
|
||||
foreach ($desktopPayload['apps'] as $desktopApp) {
|
||||
if (($desktopApp['app_id'] ?? null) === 'mining-checker') {
|
||||
$hasMiningChecker = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$renderStartIcon = static function (array $profile): string {
|
||||
$style = (string) ($profile['taskbar_icon_style'] ?? 'label');
|
||||
|
||||
@@ -142,5 +150,11 @@ $renderStartIcon = static function (array $profile): string {
|
||||
<?php if (!empty($skinProfile['js_path']) && $skinProfile['js_path'] !== $baseSkinProfile['js_path']): ?>
|
||||
<script src="<?= htmlspecialchars($assetVersion((string) $skinProfile['js_path']), ENT_QUOTES) ?>"></script>
|
||||
<?php endif; ?>
|
||||
<?php if ($hasMiningChecker): ?>
|
||||
<link rel="stylesheet" href="<?= htmlspecialchars($assetVersion('/assets/apps/mining-checker/app.css'), ENT_QUOTES) ?>">
|
||||
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
|
||||
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
|
||||
<script src="<?= htmlspecialchars($assetVersion('/assets/apps/mining-checker/app.js'), ENT_QUOTES) ?>"></script>
|
||||
<?php endif; ?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user