Browse Source

Add redirection from http to https

pull/389/head
Jerome Wu 6 years ago
parent
commit
d58b778d0b
  1. 5
      index.html

5
index.html

@ -5,6 +5,11 @@ @@ -5,6 +5,11 @@
<title>Tesseract.js | Pure Javascript OCR for 62 Languages!</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<link href='https://fonts.googleapis.com/css?family=Lato:300,400' rel='stylesheet' type='text/css'>
<script>
if (location.protocol === "http:" && !location.host.startsWith('localhost')) {
location.replace("https" + window.location.href.slice(4));
}
</script>
</head>
<body ondragover="return false">

Loading…
Cancel
Save