Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2956,7 +2956,15 @@ <h1 data-i18n="hero_title">Debug. Understand.<br><em>Ship faster.</em></h1>
};

const MAX_HISTORY = 50;
let history = JSON.parse(localStorage.getItem('qyx_history') || '[]');

let history = [];

try {
history = JSON.parse(localStorage.getItem('qyx_history') || '[]');
} catch (error) {
console.error('Failed to load history from localStorage:', error);
history = [];
}
let favorites = JSON.parse(localStorage.getItem('qyx_favorites') || '[]');
let currentResult = null;
let selectedLang = 'python';
Expand Down
Loading