diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-06-27 15:07:55 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-06-27 15:07:55 +0900 |
| commit | ff09d6ed60998e31f8baf0846b9bdd31282979ed (patch) | |
| tree | 5607ede9552e4c8e0a5c2344797a44aa97970e8e /src/ollama_web/templates/index.html | |
| parent | f93822cebf6258c3a31e03745183aa2c8bb56f4d (diff) | |
CSPによるインラインJavascriptの実行ブロックの不具合を修正。
Diffstat (limited to 'src/ollama_web/templates/index.html')
| -rw-r--r-- | src/ollama_web/templates/index.html | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ollama_web/templates/index.html b/src/ollama_web/templates/index.html index 11457e8..df877fa 100644 --- a/src/ollama_web/templates/index.html +++ b/src/ollama_web/templates/index.html @@ -11,9 +11,7 @@ <script src="{{ url_for('static', path='vendor/purify.min.js') }}"></script> <script src="{{ url_for('static', path='vendor/highlight.min.js') }}"></script> <script src="{{ url_for('static', path='vendor/katex.min.js') }}"></script> - <script> - window.I18N = {{ messages | tojson }}; - </script> + <meta name="ollama-web-i18n" content="{{ messages | tojson | forceescape }}" /> <script src="{{ url_for('static', path='i18n.js') }}"></script> </head> <body> @@ -89,4 +87,4 @@ <script src="{{ url_for('static', path='mcp.js') }}"></script> <script src="{{ url_for('static', path='app.js') }}"></script> </body> -</html>
\ No newline at end of file +</html> |
