mirror of
https://github.com/mon/PocketVoltex.git
synced 2026-09-30 18:57:56 +03:00
rev7 - Kicad!
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
RewriteEngine On
|
||||
|
||||
# If we receive a forwarded http request from a proxy...
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR]
|
||||
|
||||
# ...or just a plain old http request directly from the client
|
||||
RewriteCond %{HTTP:X-Forwarded-Proto} =""
|
||||
RewriteCond %{HTTPS} !=on
|
||||
|
||||
# Redirect to https version
|
||||
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
@@ -11,10 +11,6 @@
|
||||
<script type="text/javascript" src="js/md5.min.js"></script>
|
||||
<script type="text/javascript" src="js/jscolor.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
// because I am bad
|
||||
if (location.protocol != 'https:' && location.hostname != "localhost" && location.hostname != "127.0.0.1") {
|
||||
location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
|
||||
}
|
||||
window.addEventListener("load", function() {
|
||||
UsbWrapper_init();
|
||||
if(UsbWrapper.hasUSB) {
|
||||
|
||||
Reference in New Issue
Block a user