Skip to content

Commit

Permalink
luci-theme-openwrt: change to HTML (like all other themes) instead of…
Browse files Browse the repository at this point in the history
… XML to fix incompatibility

luci-theme-openwrt: change to HTML (like all other themes) instead of XML to fix incompatibility

see also #7229

Signed-off-by: Ramon Van Gorkom <[email protected]>
  • Loading branch information
Ramon00 authored and systemcrash committed Sep 15, 2024
1 parent b975188 commit 5a30e6c
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
const boardinfo = ubus.call('system', 'board');
const loadinfo = ubus.call("system", "info")?.load;

http.prepare_content("application/xhtml+xml");
http.prepare_content('text/html; charset=UTF-8');
-%}

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{ dispatcher.lang }}" lang="{{ dispatcher.lang }}">
<!DOCTYPE html>
<html lang="{{ dispatcher.lang }}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand Down

0 comments on commit 5a30e6c

Please sign in to comment.