diff --git a/module/webui/index.html b/module/webui/index.html index c7e5085..e75e859 100644 --- a/module/webui/index.html +++ b/module/webui/index.html @@ -244,16 +244,6 @@ - -
-
-

Please update MMRL to continue

-
-

Minimun MMRL version: v33412

-
-
-
-
diff --git a/module/webui/scripts/main.js b/module/webui/scripts/main.js index 30be321..d592130 100644 --- a/module/webui/scripts/main.js +++ b/module/webui/scripts/main.js @@ -10,7 +10,6 @@ const title = document.querySelector('.header'); export const noConnection = document.querySelector('.no-connection'); // Loading, Save and Prompt Elements -const permissionPopup = document.getElementById('permission-popup'); const loadingIndicator = document.querySelector('.loading'); const prompt = document.getElementById('prompt'); const floatingCard = document.querySelector('.floating-card'); @@ -204,30 +203,10 @@ async function uninstallWebUI() { } // Function to check if running in MMRL -async function checkMMRL() { - if (typeof ksu !== 'undefined' && ksu.mmrl) { +function checkMMRL() { + if (window.$tricky_store && Object.keys($tricky_store).length > 0) { // Set status bars theme based on device theme - try { - $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) - } + $tricky_store.setLightStatusBars(!window.matchMedia('(prefers-color-scheme: dark)').matches) } } diff --git a/module/webui/styles/global.css b/module/webui/styles/global.css index 12c1311..50f872f 100644 --- a/module/webui/styles/global.css +++ b/module/webui/styles/global.css @@ -237,31 +237,6 @@ body { 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 { position: relative; overflow: hidden;