managarten/apps-archived/news/packages/browser-extension/debug.js
Till-JS 61d181fbc2 chore: archive inactive projects to apps-archived/
Move inactive projects out of active workspace:
- bauntown (community website)
- maerchenzauber (AI story generation)
- memoro (voice memo app)
- news (news aggregation)
- nutriphi (nutrition tracking)
- reader (reading app)
- uload (URL shortener)
- wisekeep (AI wisdom extraction)

Update CLAUDE.md documentation:
- Add presi to active projects
- Document archived projects section
- Update workspace configuration

Archived apps can be re-activated by moving back to apps/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 07:03:59 +01:00

51 lines
1.5 KiB
JavaScript

// Debug script for Extension Storage
async function checkStorage() {
try {
const result = await chrome.storage.local.get(null);
document.getElementById('storageContent').textContent = JSON.stringify(result, null, 2);
console.log('Chrome Storage contents:', result);
} catch (error) {
document.getElementById('storageContent').textContent = 'Error: ' + error.message;
console.error('Error checking storage:', error);
}
}
async function clearStorage() {
try {
await chrome.storage.local.clear();
document.getElementById('storageContent').textContent = 'Storage cleared';
console.log('Chrome Storage cleared');
} catch (error) {
console.error('Error clearing storage:', error);
}
}
async function setTestData() {
try {
const testSession = {
access_token: 'test-token',
expires_at: Math.floor(Date.now() / 1000) + 3600, // 1 hour from now
refresh_token: 'test-refresh',
};
await chrome.storage.local.set({
'supabase.auth.token': JSON.stringify(testSession),
});
document.getElementById('storageContent').textContent = 'Test data set';
console.log('Test data set in Chrome Storage');
} catch (error) {
console.error('Error setting test data:', error);
}
}
// Set up event listeners when DOM is loaded
document.addEventListener('DOMContentLoaded', () => {
document.getElementById('checkBtn').addEventListener('click', checkStorage);
document.getElementById('clearBtn').addEventListener('click', clearStorage);
document.getElementById('testBtn').addEventListener('click', setTestData);
// Auto-check on load
checkStorage();
});