Skip to content

Commit

Permalink
Try to prevent quirks mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Dec 3, 2024
1 parent 7474e47 commit 01538be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/lib/kiwixLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function checkUrl (url) {
// Creates the base HTML template with a status message area
function createBaseHtml () {
const title = translateUI.t('configure-library-connecting') || 'Connecting to Library';
return `
return `<!DOCTYPE html>
<html>
<head>
<title>${title}</title>
Expand Down Expand Up @@ -256,7 +256,7 @@ async function loadLibrary (iframe) {
const tryingAlternativeMsg = translateUI.t('configure-library-trying-alternative') ||
'Attempting to contact backup server';
// Show both messages together, maintaining the error styling for the incompatibility message
updateStatus(iframe,
updateStatus(iframe,
`<p class="error-message">${incompatibilityMsg}</p>
<p>${tryingAlternativeMsg} ${params.altLibraryUrl}</p>`);
} else {
Expand Down

0 comments on commit 01538be

Please sign in to comment.