You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
misc: drop MMRL version check
This commit is contained in:
@@ -244,16 +244,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- MMRL Permission Request Overlay -->
|
|
||||||
<div id="permission-popup" class="permission-popup overlay">
|
|
||||||
<div class="permission-content">
|
|
||||||
<h2 id="permission-title">Please update MMRL to continue</h2>
|
|
||||||
<div class="permission-steps">
|
|
||||||
<p>Minimun MMRL version: v33412</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- File Selector Overlay -->
|
<!-- File Selector Overlay -->
|
||||||
<div class="file-selector-overlay overlay">
|
<div class="file-selector-overlay overlay">
|
||||||
<div class="file-selector overlay-content">
|
<div class="file-selector overlay-content">
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ const title = document.querySelector('.header');
|
|||||||
export const noConnection = document.querySelector('.no-connection');
|
export const noConnection = document.querySelector('.no-connection');
|
||||||
|
|
||||||
// Loading, Save and Prompt Elements
|
// Loading, Save and Prompt Elements
|
||||||
const permissionPopup = document.getElementById('permission-popup');
|
|
||||||
const loadingIndicator = document.querySelector('.loading');
|
const loadingIndicator = document.querySelector('.loading');
|
||||||
const prompt = document.getElementById('prompt');
|
const prompt = document.getElementById('prompt');
|
||||||
const floatingCard = document.querySelector('.floating-card');
|
const floatingCard = document.querySelector('.floating-card');
|
||||||
@@ -204,30 +203,10 @@ async function uninstallWebUI() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Function to check if running in MMRL
|
// Function to check if running in MMRL
|
||||||
async function checkMMRL() {
|
function checkMMRL() {
|
||||||
if (typeof ksu !== 'undefined' && ksu.mmrl) {
|
if (window.$tricky_store && Object.keys($tricky_store).length > 0) {
|
||||||
// Set status bars theme based on device theme
|
// Set status bars theme based on device theme
|
||||||
try {
|
$tricky_store.setLightStatusBars(!window.matchMedia('(prefers-color-scheme: dark)').matches)
|
||||||
$tricky_store.setLightStatusBars(!window.matchMedia('(prefers-color-scheme: dark)').matches)
|
|
||||||
} catch (error) {
|
|
||||||
console.error("Error setting status bars theme:", error)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check MMRL version
|
|
||||||
try {
|
|
||||||
const mmrlJson = $tricky_store.getMmrl();
|
|
||||||
const mmrlData = JSON.parse(mmrlJson);
|
|
||||||
if (mmrlData.versionCode < 33412) {
|
|
||||||
throw new Error('MMRL version is less than 33412');
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error('MMRL version check failed:', error);
|
|
||||||
$tricky_store.requestAdvancedKernelSUAPI(); // Just to ensure linkRedirect work
|
|
||||||
permissionPopup.style.display = 'flex';
|
|
||||||
setTimeout(() => {
|
|
||||||
linkRedirect('https://github.com/MMRLApp/MMRL/releases/latest');
|
|
||||||
}, 3000)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -237,31 +237,6 @@ body {
|
|||||||
background-color: var(--btn-primary);
|
background-color: var(--btn-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.permission-popup {
|
|
||||||
opacity: 1;
|
|
||||||
align-items: center;
|
|
||||||
z-index: 2000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.permission-content {
|
|
||||||
color: var(--text-primary);
|
|
||||||
background-color: var(--bg-secondary);
|
|
||||||
padding: 20px;
|
|
||||||
border-radius: 12px;
|
|
||||||
width: 80%;
|
|
||||||
max-width: 400px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.permission-content h2 {
|
|
||||||
margin-bottom: 20px;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.permission-steps {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ripple-element {
|
.ripple-element {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
Reference in New Issue
Block a user