refactor: remove dead code, fix home screen config bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user