Skip to content

Commit

Permalink
update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SX-9 authored Oct 20, 2023
1 parent 766f1a6 commit be25302
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
if (location.protocol !== "https" && !location.hostname.startsWith('localhost')) location.protocol = "https";
if (location.host.indexOf("localhost") < 0 && location.protocol.toLowerCase() !== "https:") {
const url = `https://${location.host}`;
location.replace(url);
}

import "./color.js";
import "./shell.js";

0 comments on commit be25302

Please sign in to comment.