refactor: remove dead code, fix home screen config bug

This commit is contained in:
2026-05-23 13:57:35 +00:00
parent e9207b4315
commit 312db58775
3 changed files with 13 additions and 22 deletions
+4 -2
View File
@@ -98,6 +98,8 @@
<div class="grid" id="buttonGrid"></div>
<script>
const config = {};
const buttons = [
{ id: 'email', label: 'Email', icon: '✉️', class: 'btn-gmail' },
{ id: 'internet', label: 'Internet', icon: '🌐', class: 'btn-browse' },
@@ -109,10 +111,10 @@
];
function loadButtons() {
const config = {};
const grid = document.getElementById('buttonGrid');
const urls = config.urls || {};
buttons.forEach(btn => {
const url = config.urls[btn.id];
const url = urls[btn.id] || '#';
const link = document.createElement('a');
link.className = `btn ${btn.class}`;
link.href = url;