Realtive URL fix
This commit is contained in:
13
web/ppr.html
13
web/ppr.html
@@ -441,9 +441,18 @@
|
||||
<!-- Success Notification -->
|
||||
<div id="notification" class="notification"></div>
|
||||
|
||||
<script src="/config.js"></script>
|
||||
<script>
|
||||
// API base URL for iframe embedding
|
||||
const API_BASE = 'https://ppr.swansea-airport.wales/api/v1';
|
||||
// API base URL for iframe embedding - loaded from config.js or fallback
|
||||
console.log('=== PPR Config Debug ===');
|
||||
console.log('window.PPR_CONFIG:', window.PPR_CONFIG);
|
||||
console.log('window.PPR_CONFIG.apiBase:', window.PPR_CONFIG?.apiBase);
|
||||
|
||||
const API_BASE = (window.PPR_CONFIG && window.PPR_CONFIG.apiBase) || '/api/v1';
|
||||
|
||||
console.log('Final API_BASE:', API_BASE);
|
||||
console.log('Source:', window.PPR_CONFIG?.apiBase ? 'config.js' : 'fallback');
|
||||
console.log('=======================');
|
||||
|
||||
// Iframe resizing functionality
|
||||
function sendHeightToParent() {
|
||||
|
||||
Reference in New Issue
Block a user