Skip to content

Commit

Permalink
default autocomplete to https
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpk committed Feb 12, 2022
1 parent af88a2d commit 46f5ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/assets/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
document.addEventListener('DOMContentLoaded', function() {
function addDefaultScheme(target) {
if(target.value.match(/^(?!https?:).+\..+/)) {
target.value = "http://"+target.value;
target.value = "https://"+target.value;
}
}
var elements = document.querySelectorAll("input[type=url]");
Expand Down

0 comments on commit 46f5ac3

Please sign in to comment.