Skip to content

Commit

Permalink
src/main.js: finally fix isLocal check for https redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeh committed Apr 13, 2024
1 parent 400d829 commit 5d9e4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {
hostname,
protocol
} = window.location;
const isLocal = hostname !== 'localhost' && hostname !== '127.0.0.1';
const isLocal = hostname === 'localhost' || hostname === '127.0.0.1';
const isHttp = protocol === 'http:';
if (!isLocal && isHttp) {
window.location.protocol = 'https:';
Expand Down

0 comments on commit 5d9e4e9

Please sign in to comment.