Skip to content

Commit

Permalink
[*] Bypass localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
bestpika committed May 29, 2020
1 parent 5774945 commit 1934b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.min.js"></script>
<script type="text/javascript">
// HTTP => HTTPS
if (location.protocol !== 'https:') {
if (location.protocol !== 'https:' && location.hostname !== 'localhost') {
location.protocol = 'https:'
}
</script>
Expand Down

0 comments on commit 1934b63

Please sign in to comment.