Skip to content

Commit

Permalink
Fixed redirect to https, styles placement adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorthiz committed Oct 16, 2024
1 parent c20b0f6 commit 6bec73c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
<title>Kaitai Web IDE</title>
<script>
// HTTPS redirect
var loc = location.toString();
if (loc.indexOf("http://ide.kaitai.io/") === 0)
location = "https" + loc.substring(4);
const host = "kaitai.lorthiz.ovh";
if (window.location.href.match(`http://${host}`)) window.location.protocol='https:'
</script>

<!-- SCRIPT_INJECTION_POINT -->

</head>
<body>
<noscript>
Expand Down
6 changes: 3 additions & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import "bootswatch/darkly/bootstrap.min.css";
import "../css/contextmenu.css";
import "golden-layout/src/css/goldenlayout-base.css";
import "golden-layout/src/css/goldenlayout-dark-theme.css";
import "../css/app.css";
import "../css/scrollbars.css";
import "font-awesome/css/font-awesome.min.css";
import "@imengyu/vue3-context-menu/lib/vue3-context-menu.css";

import "../css/app.css";
import "../css/scrollbars.css";
import "../css/contextmenu.css";

import "./ImportJQuery";
import "bootstrap";
Expand Down

0 comments on commit 6bec73c

Please sign in to comment.