File: main.html

package info (click to toggle)
python-uvicorn 0.38.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,932 kB
  • sloc: python: 9,184; sh: 48; makefile: 15
file content (12 lines) | stat: -rw-r--r-- 408 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
{% extends "base.html" %}

{% block extrahead %}
  {{ super() }}
  <script>
    // Redirect starlette.io to starlette.dev
    if (window.location.hostname === 'www.uvicorn.org' || window.location.hostname === 'uvicorn.org') {
      const newUrl = window.location.href.replace(/^https?:\/\/(www\.)?uvicorn\.org/, 'https://uvicorn.dev');
      window.location.replace(newUrl);
    }
  </script>
{% endblock %}