File size: 431 Bytes
793a92d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
// Initialize environment variables from meta tags
document.addEventListener('DOMContentLoaded', function() {
    const openrouterMeta = document.querySelector('meta[name="openrouter-key"]');
    const hfMeta = document.querySelector('meta[name="hf-key"]');
    
    if (openrouterMeta) {
        window.OPENROUTER_API_KEY = openrouterMeta.content;
    }
    
    if (hfMeta) {
        window.HF_API_KEY = hfMeta.content;
    }
});