Skip to content

Commit cc4a344

Browse files
committed
Removed some debug logging, re-added same-origin
for iframes, and fixed notes panel text.
1 parent 28928bf commit cc4a344

4 files changed

Lines changed: 4 additions & 27 deletions

File tree

index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

modules/ui.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,7 @@ export async function updateReferencePanel() {
194194
iframe.src = urlFormats[currentUrlIndex];
195195
currentUrlIndex++;
196196
}
197-
iframe.onload = function() {
198-
console.log('Bible.com loaded successfully with format', currentUrlIndex);
199-
};
200197
iframe.onerror = function() {
201-
console.log('Trying next Bible.com URL format...');
202198
tryNextUrl();
203199
};
204200
tryNextUrl();

src/index.html

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png">
3131
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
3232
<meta name="theme-color" content="#600">
33-
<meta name="apple-mobile-web-app-capable" content="yes">
33+
<meta name="mobile-web-app-capable" content="yes">
3434
<meta name="apple-mobile-web-app-status-bar-style" content="default">
3535
<meta name="apple-mobile-web-app-title" content="Provinent Scripture Study">
3636
<meta name="msapplication-TileColor" content="#600">
@@ -307,7 +307,7 @@ <h3>Reference Bible</h3>
307307
class="reference-panel-iframe"
308308
src=""
309309
title="Reference Bible Content"
310-
sandbox="allow-scripts allow-popups allow-forms"></iframe>
310+
sandbox="allow-same-origin allow-popups allow-forms"></iframe>
311311

312312
<div class="pdf-viewer" id="pdfViewer">
313313
<div class="pdf-controls">
@@ -459,21 +459,7 @@ <h3>Study Notes</h3>
459459
</div>
460460

461461
<!-- Textarea for raw notes (visible in Text mode) -->
462-
<textarea id="notesInput" aria-label="Study notes" placeholder="Write your study notes here...
463-
464-
Text mode: Plain text
465-
Markdown mode: Live markdown preview
466-
467-
Examples:
468-
# Heading 1
469-
## Heading 2
470-
**Bold text**
471-
*Italic text*
472-
- Bullet point
473-
1. Numbered list
474-
> Quote
475-
[Link text](url)
476-
"></textarea>
462+
<textarea id="notesInput" aria-label="Study notes" placeholder="Write your study notes here..."></textarea>
477463

478464
<!-- Rendered markdown preview (visible in Markdown mode) -->
479465
<div id="notesDisplay" style="display: none;"></div>

src/modules/ui.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,7 @@ export async function updateReferencePanel() {
276276
currentUrlIndex++;
277277
}
278278

279-
iframe.onload = function() {
280-
console.log('Bible.com loaded successfully with format', currentUrlIndex);
281-
};
282-
283279
iframe.onerror = function() {
284-
console.log('Trying next Bible.com URL format...');
285280
tryNextUrl();
286281
};
287282

0 commit comments

Comments
 (0)